@samiure/nodestorage
v1.0.10
Published
localStorage for Node.js
Downloads
15
Maintainers
Readme
localStorage for Node.js.
The syntax is the same as regular localStorage.
const Storage = require('@samiure/nodestorage');
const localStorage = new Storage();
localStorage.setItem('hw', 'Hello world');
console.log(localStorage.getItem('hw')) // Hello world
API
- localStorage.setItem(key, value);
- localStorage.getItem(key);
- localStorage.removeItem(key);
- localStorage.clear();
1.0.10 - A fully working version without bugs and errors