async-store
v1.0.3
Published
const asyncStore = require('async-store')
Downloads
3
Readme
const asyncStore = require('async-store')
async-store
Read data from a json file and return that data as a javascript object. If the file does not exist, create it with supplied data.
asyncStore({filename: 'test.json', data: {lorum: 'ipsum'}})
.then(resp => {
console.log(resp)
})
asyncStore returns a promise. Both the filename and data arguments are required.