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: 3 months ago
JSON representation
Fast streaming parser for Node.js trace events
- Host: GitHub
- URL: https://github.com/clinicjs/node-trace-events-parser
- Owner: clinicjs
- License: other
- Created: 2018-08-22T15:33:13.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T20:39:53.000Z (over 3 years ago)
- Last Synced: 2025-04-13T06:42:34.239Z (3 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 5
- Watchers: 20
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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