npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@wulechuan/controller--enhanced-web-storage

v1.1.2

Published

此乃吴乐川的《改良型浏览器存储器》。浏览器标准的存储器(`window.localStorage` 与 `window.sessionStorage`)有诸多限制。本品借助 `JSON.stringify` 和 `JSON.parse` 提供改良的存储器,已替代上述两种标准存储器。

Downloads

14

Readme

吴乐川的《改良型浏览器存储器》

中国人——特别是汉族人,理应坚持广泛、规范地使用汉语。凡非必要之情形不说外国话、不用外国字。此乃天经地义!然则每当必要,亦不排斥采用外国之语言。不妨 博世界之学问,养中国之精神

本人亦支持少数民族坚持采用自己民族的传统语言。仍须强调,凡中国人,皆应会用汉语、积极使用汉语,此乃中华各民族之大一统之必由。

NPM 页

@wulechuan/controller--enhanced-web-storage

源代码仓库

| 提供仓库服务之组织 | 仓库组织之国别 | 仓库地址 | | ------------- | :----------: | ------- | | 码云 | 中华人民共和国 | https://gitee.com/nanchang-wulechuan/wulechuan--typescript--controller--enhanced-web-storage.git | | GitHub | 美 | https://github.com/wulechuan/wulechuan--typescript--controller--enhanced-web-storage.git |

介绍

浏览器标准的存储器(window.localStoragewindow.sessionStorage)有诸多限制。本品借助 JSON.stringifyJSON.parse 提供改良的存储器,已替代上述两种标准存储器。

用法

示例

import {
    改良型浏览器会话存储器,
    改良型浏览器本地存储器,
} from '@wulechuan/controller--enhanced-web-storage'

改良型浏览器本地存储器.保存条目(
    '甲',
    { 条目: '甲', 解释: '天干第一。第一。盔甲。硬壳。旧时户口编制单位。同“胛”。' },
    { 有效期_以秒计: 3 }
)

改良型浏览器会话存储器.保存条目('乙', { 读音: 'yǐ', 笔画数: 1 }, { 有效期_以秒计: 3 })



// 应取得事先存入的值。
console.log('第 1 次取得 `甲`:', 改良型浏览器本地存储器.当即取此条目('甲').原始值)

// 应取得事先存入的值。
console.log('第 1 次取得 `乙`:', 改良型浏览器会话存储器.当即取此条目('乙').原始值)

console.log('请等待大约 3 秒钟。')

setTimeout(() => {
    // 应取得 undefined。因为 '甲' 已过有效期。
    console.log('第 2 次取得 `甲`:', 改良型浏览器本地存储器.当即取此条目('甲').原始值)

    // 应取得 undefined。因为 '乙' 已过有效期。
    console.log('第 2 次取得 `乙`:', 改良型浏览器会话存储器.当即取此条目('乙').原始值)
}, 3001)

应用编程接口

见《./源代码/原始的源代码/types.d.ts》。