storee

1.2.1 • Public • Published

storee

Build Status Coverage Status

A lightweight wrapper around localStorage to make it work like you think it does

Usage

import storee from 'storee';

const store = storee();

store.set('count', 10);

const count = store.get('count'); // 10

store.set('people', ['Woody', 'Buzz']);

const [ woody, buzz ] = store.get('people');

Caveats

  • Storing 'true' or 'false' (strings) will be cast to booleans when retrieved

License

MIT

Package Sidebar

Install

npm i storee

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

22.8 kB

Total Files

12

Last publish

Collaborators

  • pieterbeulque