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
- localStorage.setItem(key, value);
- localStorage.getItem(key);
- localStorage.removeItem(key);
- localStorage.clear();
1.0.10 - A fully working version without bugs and errors