qiao.ls.js
浏览器 localStorage 本地存储常见 api 封装和增强,详情:一篇文章学会 LocalStorage
install
npm i qiao.ls.js
use
const { ls } = require('qiao.ls.js');
import { ls } from 'qiao.ls.js';
api
set
q.ls('name', 'value');
set with expires
q.ls('name', 'value', 10 * 1000);
get
console.log(q.ls('name'));
delete
q.ls('name', null);
console.log(q.ls('name'));
version
0.1.2.20220926
- add synk
- modify md
- modify homepage
0.1.1.20220711
- tree shaking
0.1.0.20220709
- add eslint
0.0.9.20220512
- lerna
0.0.8.20210215
- qls --> q
0.0.7.20210214
- add jsdoc
0.0.6.20210209
- add jest
- expires to ms
- md
0.0.5.20201022
- export ls and cache
0.0.4.20200803
- ncu
0.0.3.20200414
- set cache
- get cache
- remove cache
- clear cache
- add cache and ls
0.0.2.20191206
- add funding
0.0.1.20190624
- init project
- set item
- get item
- remove item
- modify expires