https://github.com/alex0007/create-json-stream
Streaming big json files
https://github.com/alex0007/create-json-stream
Last synced: 5 months ago
JSON representation
Streaming big json files
- Host: GitHub
- URL: https://github.com/alex0007/create-json-stream
- Owner: Alex0007
- Created: 2019-10-28T00:45:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:06:15.000Z (over 2 years ago)
- Last Synced: 2025-02-26T11:16:55.851Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 282 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# create-json-stream [](https://www.npmjs.com/package/create-json-stream)  [](https://travis-ci.org/Alex0007/create-json-stream)
Wrapper around [indutny/json-depth-stream](https://github.com/indutny/json-depth-stream) for easier access to emitted JSON items. Not so low-level / no need to read data by offsets.
## Example
```ts
import { createJsonStream } from "create-json-stream";// Stream emits geojson features 1 by 1
const stream = createJsonStream(
"food-dominance.geojson",
{
path: ["features"],
depth: 2
},
{ encoding: null }
);
```