Nectar of the Programming Masses
Have ideas to improve npm?Join in the discussion! »

@reactizer/session
TypeScript icon, indicating that this package has built-in type declarations

0.29.1 • Public • Published

@reactizer/session

Utilities for session stuff.

API

Local and session storages are checked for existence.

import { cookies, localStorage, sessionStorage } from "@reactizer/session";
 
const key = "key";
const value = "value";
 
cookies.save(key, value);
cookies.load(key);
cookies.remove(key);
 
// Same API for 'localStorage' and 'sessionStorage'

License

MIT

Keywords

none

Install

npm i @reactizer/session

DownloadsWeekly Downloads

10,809

Version

0.29.1

License

MIT

Unpacked Size

8.56 kB

Total Files

16

Last publish

Collaborators

  • avatar