JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q34304F
  • License MIT

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

Package Exports

  • storee

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (storee) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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