-
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>
trace-filter-internals
v0.1.0 trace filter internals stack clean
trace-filter-internals
Filters internal functions from a given trace.
var filter = require('trace-filter-internals);
var filtered = filter(trace.split('\n');
Installation
npm install trace-filter-internals
API
generated with docme
License
MIT
npm i trace-filter-internals
Metadata
- [object Object]
- Whatever
- Thorsten Lorenz
- released 2/2/2015