1.0.0 • Published 7 years ago
jsto v1.0.0
Jsto
Save/Load object as JSON with compress and encryption with aes-256.
Installation
npm i jstoUsage
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