npm.io
1.0.2 • Published 9 years ago

local-offline

Licence
ISC
Version
1.0.2
Deps
0
Vulns
0
Weekly
0

local-offline

The most practical way to work with localstorage

Installation

npm i -S local-offline

Declaration

const local = require('local-offline');

Or

import local from 'local-offline';

How to use

Unlike the traditional localStorage, local-offline stores type the variable.

To store a new value:

var x = 10;
local('x', x);

Keywords