Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex0007/create-json-stream
Streaming big json files
https://github.com/alex0007/create-json-stream
Last synced: 2 days 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:06:15.000Z (about 2 years ago)
- Last Synced: 2025-01-09T10:18:42.072Z (4 days 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 [![npm](https://img.shields.io/npm/v/create-json-stream)](https://www.npmjs.com/package/create-json-stream) ![](https://img.shields.io/david/alex0007/create-json-stream) [![](https://travis-ci.org/Alex0007/create-json-stream.svg?branch=master)](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 }
);
```