@jtorm/json-repository
v1.0.0
Published
jTorm JSON Repository
Downloads
4
Readme
jTorm JSON Repository
Install
npm install @jtorm/json-repository
Usage
const
{ jsonRepositoryModel } = require('@jtorm/json-repository'),
path = 'your_dir',
file = 'example-file.json',
data = {
"test": 1
}
;
(async () => {
await jsonRepositoryModel.set(path, file, data);
const result = await jsonRepositoryModel.get(path, file);
})();