1.0.2 • Published 7 years ago

json-io-promised v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

JSON IO Promised

This is a simple promise-based wrapper around Node's File System that reads & writes JSON files.

Usage

var jio = require('json-io-promised');

jio.readJSON(fileName).then(function(object) {
  // Do something with the parsed JSON
}).catch(function(err) {
  // Handle errors
});

jio.writeJSON(fileName, object).then(function() {
  // Do something upon successful write
}).catch(function(err) {
  // Handle errors
})