Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/clinicjs/node-trace-events-parser
- Owner: clinicjs
- License: other
- Created: 2018-08-22T15:33:13.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T20:39:53.000Z (about 3 years ago)
- Last Synced: 2024-10-30T10:29:50.635Z (2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 5
- Watchers: 21
- 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