Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/trace-filter-internals
Filters internal functions from a given trace.
https://github.com/thlorenz/trace-filter-internals
Last synced: 13 days ago
JSON representation
Filters internal functions from a given trace.
- Host: GitHub
- URL: https://github.com/thlorenz/trace-filter-internals
- Owner: thlorenz
- License: mit
- Created: 2015-02-02T20:54:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T21:18:00.000Z (almost 10 years ago)
- Last Synced: 2024-10-15T05:32:54.667Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trace-filter-internals [![build status](https://secure.travis-ci.org/thlorenz/trace-filter-internals.png)](http://travis-ci.org/thlorenz/trace-filter-internals)
[![testling badge](https://ci.testling.com/thlorenz/trace-filter-internals.png)](https://ci.testling.com/thlorenz/trace-filter-internals)
Filters internal functions from a given trace.
```js
var filter = require('trace-filter-internals);
var filtered = filter(trace.split('\n');
```## Installation
npm install trace-filter-internals
## API
filterInternals(lines, opts) → {Array.<string>}Filters all internals specified via opts from the given lines.
Parameters:
Name
Type
Argument
Description
lines
Array.<string>
to filter lines from that have internals
opts
Object
<optional>
specify which kind of internals to keep
Properties
Name
Type
Description
unresolveds
Boolean
unresolved addresses like
0x1a23c
are filtered from the trace unless this flag is set (default: false)
sysinternals
Boolean
sysinternals like
__lib_c_start...
are filtered from the trace unless this flag is set (default: false)
v8internals
Boolean
v8internals like
v8::internal::...
are filtered from the trace unless this flag is set (default: false)
v8gc
Boolean
when v8internals are filtered, garbage collection info is as well unless this flag set (default: true)
Returns:
lines that passed through the filter
Type
Array.<string>*generated with [docme](https://github.com/thlorenz/docme)*
## License
MIT