set-get-local
v1.0.1
Published
An npm package to play with local storage by simply set and get without have any thinking about parse or stringfy the data
Downloads
4
Readme
set-get-local
A simple utility package for setting and getting data in local storage.
Installation
You can install the package via npm or yarn:
npm install set-get-local
yarn add set-get-local
#Usage ##Set
import { setLocal } from 'set-get-local';
setLocal('key', 'value');
##Get
import { getLocal } from 'set-get-local';
const data = getLocal('key');
console.log(data);
Feel free to customize it further with additional information or examples as needed.