1.0.3 • Published 7 years ago

async-store v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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.

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago