create-json-stream
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

create-json-stream npm

Wrapper around indutny/json-depth-stream for easier access to emitted JSON items. Not so low-level / no need to read data by offsets.

Example

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 }
);

Dependents (0)

Package Sidebar

Install

npm i create-json-stream

Weekly Downloads

7

Version

3.1.0

License

ISC

Unpacked Size

6.96 kB

Total Files

8

Last publish

Collaborators

  • alex0007