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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    10
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    10
  • 1.0.0
    4

Package Sidebar

Install

npm i line-json

Weekly Downloads

12

Version

2.0.0

License

MIT

Last publish

Collaborators

  • timothygu