# @cocreate/local-storage 中文文档

规范地址：https://npmcn.com/package/%40cocreate/local-storage/

版本：2\.0\.2
npm 元数据更新时间：2026-11-07T02:44:12.497Z
中文译文更新时间：2026-11-10T07:39:53.533Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40cocreate/local-storage
原文对照：https://npmcn.com/package/%40cocreate/local-storage/?lang=original
项目主页：https://cocreatejs.com/docs/local-storage
源码仓库：https://github.com/CoCreateJS/local-storage

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：110 kB，15 个文件
- 模块格式：CommonJS
- TypeScript 类型：未声明
- 运行依赖：2 个
- 首次发布：2021-03-26T01:43:05.556Z
- 最新版本发布：2026-11-07T02:44:12.306Z
- 近 30 天下载量：2404（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：220（近 12 个月 12 个）

## 中文简介

类似 CoCreate- intopt & CoCreate- fach 的简单组件, 用于保存和获取输入数据, 文本区域, 从本地存储中选择 。 使用 HTML5 属性和/或 JavaScript API 轻松配置

## 安装

```sh
npm install @cocreate/local-storage
```

也可以使用：`pnpm add @cocreate/local-storage`、`yarn add @cocreate/local-storage`、`bun add @cocreate/local-storage`

## README

# 创造- 本地存储

类似 CoCreate- intopt & CoCreate- fach 的简单组件, 用于保存和获取输入数据, 文本区域, 从本地存储中选择 。 使用 HTML5 属性和/或 JavaScript API 轻松配置 把它当作我们的旋转 [游乐场!](https://cocreatejs.com/docs/local-storage)

![minified](https://img.badgesize.io/https://cdn.CoCreateJS.com/local-storage/latest/CoCreate-local-storage.min.js?style=flat-square&label=minified&color=orange) ![gzip](https://img.badgesize.io/https://cdn.CoCreateJS.com/local-storage/latest/CoCreate-local-storage.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow) ![brotli](https://img.badgesize.io/https://cdn.CoCreateJS.com/local-storage/latest/CoCreate-local-storage.min.js?compression=brotli&style=flat-square&label=brotli) ![GitHub latest release](https://img.shields.io/github/v/release/CoCreateJS/local-storage?style=flat-square) ![License](https://img.shields.io/github/license/CoCreateJS/local-storage?style=flat-square) ![Hiring](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)

![CoCreate-local-storage](https://cdn.cocreatejs.com/docs/CoCreate-local-storage.gif)

## [文档和演示](https://cocreatejs.com/docs/local-storage)

完整的指南和工作演示请参见 [贴花](https://cocreatejs.com/docs/local-storage)

## 光盘N

```html
<script src="https://cdn.CoCreateJS.com/local-storage/latest/CoCreate-local-storage.min.js"></script>
```

```html
<script src="https://cdn.CoCreateJS.com/local-storage/latest/CoCreate-local-storage.min.css"></script>
```

## 国家预防机制

```shell
$ npm i @cocreate/local-storage
```

## 线条

```shell
$ yarn install @cocreate/local-storage
```

# 目录

-   [目录](https://npmcn.com/package/%40cocreate/local-storage/#readme-table-of-contents)
-   [通知](https://npmcn.com/package/%40cocreate/local-storage/#readme-announcements)
-   [路线图](https://npmcn.com/package/%40cocreate/local-storage/#readme-roadmap)
-   [如何贡献](https://npmcn.com/package/%40cocreate/local-storage/#readme-how-to-contribute)
-   [关于](https://npmcn.com/package/%40cocreate/local-storage/#readme-about)
-   [许可证](https://npmcn.com/package/%40cocreate/local-storage/#readme-license)

# 通知

图书馆的所有更新都记录在我们 [变化](https://github.com/CoCreateJS/local-storage/blob/master/CHANGELOG.md) 财务报告和审定财务报表 [释放](https://github.com/CoCreateJS/local-storage/releases)。您也可以订阅电子邮件以发布和中断更改.

# 路线图

如果你对这个项目的未来方向有兴趣, 请看看我们的开放 [问题](https://github.com/CoCreateJS/local-storage/issues) 财务报告和审定财务报表 [拖动请求](https://github.com/CoCreateJS/local-storage/pulls)我们想听听你的反馈.

# 关于

CoCreate-local-servestage由CoCreate开发者经验团队指导和支持.

请发电子邮件给开发者体验团队 [这里](mailto:develop@CoCreateJS.com) 如果有任何疑问.

CoCreate-local-storge由CoCreate维护和资助. CoCreate的名称和标志是CoCreate,LLC的商标.

# 如何贡献

我们鼓励为我们的图书馆捐款(你甚至可能得分) [捐款](https://github.com/CoCreateJS/local-storage/blob/master/CONTRIBUTING.md) 详细指南.

我们希望这个图书馆由社区驱动, Coreate 领导。 我们需要你的帮助来实现这一目标。 为了帮助确保我们按正确的顺序建造正确的东西,我们请你们创造 [问题](https://github.com/CoCreateJS/local-storage/issues) 财务报告和审定财务报表 [拖动请求](https://github.com/CoCreateJS/local-storage/pulls) 或只是对现有问题进行投票或发表意见或提出请求.

我们感谢你的继续支持,谢谢!

# 许可证

[《麻省理工学院许可证》](https://github.com/CoCreateJS/local-storage/blob/master/LICENSE)

## 常见问题

### @cocreate/local-storage 是什么？

类似 CoCreate- intopt & CoCreate- fach 的简单组件, 用于保存和获取输入数据, 文本区域, 从本地存储中选择 。 使用 HTML5 属性和/或 JavaScript API 轻松配置

### 如何安装 @cocreate/local-storage？

在项目目录运行 npm install @cocreate/local-storage，或使用 pnpm add / yarn add / bun add。

### @cocreate/local-storage 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/cocreate\_\_local-storage 是否存在。

### @cocreate/local-storage 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @cocreate/local-storage 可以商用吗？

@cocreate/local-storage 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @cocreate/local-storage 的下载量有多少？

根据 npm 官方下载统计，@cocreate/local-storage 在 2026/10/10 – 2026/11/08 这 30 天内被下载 2,404 次，日均约 80 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @cocreate/local-storage 还在维护吗？

最新版本 2\.0\.2 发布于 2026/11/07（3 天前）；至今共发布 220 个版本，其中过去 12 个月发布了 12 个；首次发布于 2021/03/26。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

