node-localStorage

0.0.1 • Public • Published

node-storage

This library is likeness localStorage in browsers. It implements all methods and properties of localStorage, but it not localStorage!

How to use

'use strict';
const nodeStorage = require('node-storage');
global.nodeStorage = nodeStorage.storage('/path/to/jsondb.json');

API

NodeStorage#getItem(key);
NodeStorage#setItem(key, value);
NodeStorage#removeIte(key);
NodeStorage#clear();

Readme

Keywords

none

Package Sidebar

Install

npm i node-localStorage

Weekly Downloads

17

Version

0.0.1

License

MIT License

Last publish

Collaborators

  • artur.aralin