Neverending Plethora of Modules

npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

line-json

2.0.0 • Public • Published

line-json

Parses and stringifies JSON arrays delimited by lines.

Build Status devDependencies Status NPM version

This is useful when you have a large amount of data in an array, and you feel that the bracket expression is too clumsy.

Installation

npm install line-json

Usage

var lineJSON = require('line-json')
 
var result = lineJSON.stringify([ 'a', 'b', { c: 'd' } ])
// '"a"\n"b"\n{"c":"d"}'
 
lineJSON.parse(result)
// [ 'a', 'b', { c: 'd' } ]

License

MIT

Keywords

install

npm i line-json

Downloadsweekly downloads

59

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability