https://github.com/hubgit/output-stream
Write data to a CSV or NDJSON file
https://github.com/hubgit/output-stream
csv ndjson stream
Last synced: about 2 months ago
JSON representation
Write data to a CSV or NDJSON file
- Host: GitHub
- URL: https://github.com/hubgit/output-stream
- Owner: hubgit
- Created: 2018-01-29T20:18:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T20:21:24.000Z (about 3 years ago)
- Last Synced: 2025-03-11T11:08:50.006Z (about 2 months ago)
- Topics: csv, ndjson, stream
- Language: JavaScript
- Homepage: https://npmjs.com/packages/output-stream/
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example usage
```js
const output = require('output-stream')('repositories.ndjson')require('rest-collection-stream')('https://api.github.com/search/repositories', {
qs: {
sort: 'stars',
order: 'desc',
q: 'language:javascript'
},
headers: {
'User-Agent': 'rest-collection'
}
}).pipe(output)
```