2.0.0 • Published 3 years ago

@clinic/trace-events-parser v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

@clinic/trace-event-parser

Fast streaming parser for Node.js trace events.

npm install @clinic/trace-event-parser

Usage

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