Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/clinicjs/node-trace-events-parser

Fast streaming parser for Node.js trace events
https://github.com/clinicjs/node-trace-events-parser

Last synced: about 2 months ago
JSON representation

Fast streaming parser for Node.js trace events

Awesome Lists containing this project

README

        

# @clinic/trace-event-parser

Fast streaming parser for Node.js trace events.

```
npm install @clinic/trace-event-parser
```

## Usage

```js
const parser = require('@clinic/trace-events-parser')
const fs = require('fs')

fs.createReadStream('node_trace.log')
.pipe(parser())
.on('data', function (data) {
console.log('traceEvent:', data)
})
```

You can also use JSONStream to parse trace events, but
this uses a specialised parser to achive a much higher throughput.

## License

Apache-2.0