pull-ndjson
A pull-streams ndjson parser and serializer, inspired by and compatible with [ndjson](https://www.npmjs.com/package/ndjson).
Last updated 6 years ago by daviddias .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pull-ndjson 
SYNC missed versions from official npm registry.

pull-ndjson

A pull-streams ndjson parser and serializer, inspired by and compatible with ndjson. Note: This module ends up being a very tiny wrapper around pull-strinfigy and pull-split, exposing the same API as ndjson.

Table of Contents

Install

> npm install pull-ndjson

Examples

Serialize and Deserialize

const ndjson = require('ndjson')

pull(
  pull.values([{ a: 1 }]),
  ndjson.serialize(),
  ndjson.parse(),
  pull.collect((err, values) => {
    if (err) {
      throw err
    }
    console.log(values)
    // [{ a: 1}]
  })
)

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © David Dias

Current Tags

  • 0.2.0                                ...           latest (6 years ago)

3 Versions

  • 0.2.0                                ...           6 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (7)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |