1.1.3 • Published 8 years ago

json-preserve-indent v1.1.3

Weekly downloads
29
License
MIT
Repository
github
Last release
8 years ago

json-preserve-indent

Build Status Coverage Status Dependency Status devDependency Status js-standard-style semantic-release

NPM

read from, write to and return a JSON string, minimizing diffs and preserving indents/fileending

var jsonPreserveIndent = require('json-preserve-indent')

var thing = jsonPreserveIndent('{\n\t"foo": {\n\t\t"bar": "baz"\n\t}\n}\n')

thing.get('foo.bar')
// baz
thing.set('foo.bar', 'boo')
thing.format()
// {\n\t"foo": {\n\t\t"bar": "boo"\n\t}\n}\n

Based on json-file-plus, but without the filesystem parts.

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago