@samiure/nodestorage

1.0.10 • Public • Published

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

Package Sidebar

Install

npm i @samiure/nodestorage

Weekly Downloads

10

Version

1.0.10

License

ISC

Unpacked Size

2.69 kB

Total Files

3

Last publish

Collaborators

  • samiure