npm.io
0.2.0 • Published 12 years ago

format-package-json

Licence
BSD
Version
0.2.0
Deps
1
Vulns
0
Weekly
0
Stars
2

format-package-json

Module attempts to detect the spacing used, the final line ending.

It will then attempt to reformat an Object back into this string and save the file.

usage


var format = require('format-package-json')


format('/path/to/package.json', function (err, data) {
    //data - the string that it wrote

    //That's it
})

sync

  • format.sync
  • format.readSync
  • format.writeSync

build

Build Status

Keywords