@nearform/trace-events-parser

Fast streaming parser for Node.js trace events

Stats

StarsIssuesVersionUpdatedCreatedSize
@nearform/trace-events-parser
511.0.43 years ago3 years agoMinified + gzip package size for @nearform/trace-events-parser in KB

Readme

@nearform/trace-event-parser

Fast streaming parser for Node.js trace events.

npm install @nearform/trace-event-parser

Usage

const parser = require('@nearform/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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.