UNPKG

shelveit

Version:

state persistence in json, yaml, toml, or ini files, optionally encrypted

11 lines (8 loc) 236 B
const {store, retrieve} = require('../dist/bundle.js'); const thing = { name: 'Romario' }; (async() => { await store(thing, {encrypt: {password: 'romario'}}); console.log(await retrieve({encrypt: {password: 'romario'}})); })();