Skip to content

Zingle/node-ndjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js library for parsing ND-JSON streams.

Usage

const ndjson = require("@zingle/ndjson");
const docs = getStreamSomehow().pipe(ndjson());

printIds(docs).catch(console.error);

async function printIds(iterable) {
    for await (const doc of iterable) {
        console.log(doc.id);
    }
}

About

Node.js library for parsing ND-JSON stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published