Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)


Source:



Returns:


lines that passed through the filter





Type


Array.<string>



*generated with [docme](https://github.com/thlorenz/docme)*

## License

MIT