Home

Awesome

then-write-json npmjs.com The MIT License

Write contents to JSON file using JSON.stringify and promises. Creating intermediate directories if they don't exist.

code climate standard code style travis build status coverage status dependency status

Install

npm i then-write-json --save
npm test

Usage

For more use-cases see the tests

var thenWriteJson = require('then-write-json')

thenWriteJson('./foobar.json', {foo: 'bar'})
.then(function (res) {
  console.log(res)
  //=> true
})
.catch(console.error)

Related

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github