data-storager
Simple storage for you data with customized transports/provirers
Installation
npm install data-storager --save
Usage
const storage = ; // create a named data store. If the data in the storage has already // been saved earlier, it will be read and placed in `test.data`const test = storage; // take data from storage and output it to the consoleconsole; // при первом запуске выведет: `{}` // при следующем запуске выведет: `{foo: 123, bar: {test: true}}` // put data into storagetestdatafoo = 123;testdatabar = test: true; // save all data changes to the storagestorage;
... documentation in processed
Participation in development
https://github.com/lastuniverse/data-storager/issues
License
MIT