@clinic/trace-events-parser

2.0.0 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @clinic/trace-events-parser

Weekly Downloads

17,121

Version

2.0.0

License

Apache-2.0

Unpacked Size

8.1 kB

Total Files

7

Last publish

Collaborators

  • jasnell
  • matteo.collina
  • simoneb
  • rafaelgss