jsto
v1.2.1
Published
> Save/Load object as JSON with compress and encryption with aes-256.
Downloads
1
Readme
Jsto
Save/Load object as JSON with compress and encryption with aes-256.
Installation
npm i jsto
Usage
const jsto = require('jsto')
jsto.options['indent_size'] = 2
const func = async () => {
await jsto.dump(
'./staff.sto',
[
{ name: 'John', age: '34' },
{ name: 'Gaston', age: '28' },
],
'passwd'
)
await jsto.load('./staff.sto', 'passwd')
}
License
MIT © MamoruDS