3.1.0 • Published 4 years ago

create-json-stream v3.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

create-json-stream npm npm.io npm.io

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