0.1.1 • Published 5 years ago
@pigsking/store v0.1.1
Store
Same API as browser storage
Install
npm install @pigsking/store
// or
yarn add @pigsking/store
Usage
import{local,session} from '@pigsking/store'
local.setItem('name','allen')
local.getItem('name') // allen
local.removeItem('name')
local.clear()
session.setItem('name','allen')
session.getItem('name') // allen
session.removeItem('name')
session.clear()
License
This project is licensed under GLWTPL