Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qiao.ls.js

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiao.ls.js

local storage expires

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

qiao.ls.js

npm version npm downloads npm bundle size

浏览器 localStorage 本地存储常见 api 封装和增强,详情:一篇文章学会 LocalStorage

install

npm i qiao.ls.js

use

// cjs
const q = require('qiao.ls.js');
q.ls;

// mjs
import { ls } from 'qiao.ls.js';

api

set

// set
q.ls('name', 'value');

set with expires

// set 10s expires
q.ls('name', 'value', 10 * 1000);

get

// get
console.log(q.ls('name')); // value

delete

// delete
q.ls('name', null);
console.log(q.ls('name')); // undefined

version

0.1.2.20220926

  1. add synk
  2. modify md
  3. modify homepage

0.1.1.20220711

  1. tree shaking

0.1.0.20220709

  1. add eslint

0.0.9.20220512

  1. lerna

0.0.8.20210215

  1. qls --> q

0.0.7.20210214

  1. add jsdoc

0.0.6.20210209

  1. add jest
  2. expires to ms
  3. md

0.0.5.20201022

  1. export ls and cache

0.0.4.20200803

  1. ncu

0.0.3.20200414

  1. set cache
  2. get cache
  3. remove cache
  4. clear cache
  5. add cache and ls

0.0.2.20191206

  1. add funding

0.0.1.20190624

  1. init project
  2. set item
  3. get item
  4. remove item
  5. modify expires

Keywords

FAQs

Package last updated on 01 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc