# @cfcs/core 中文文档

规范地址：https://npmcn.com/package/%40cfcs/core/

版本：0\.1\.0
npm 元数据更新时间：2023-02-24T13:04:35.416Z
中文译文更新时间：2026-11-09T08:31:42.869Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%40cfcs/core
原文对照：https://npmcn.com/package/%40cfcs/core/?lang=original
项目主页：https://naver.github.io/cfcs
源码仓库：https://github.com/naver/cfcs#main

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

- 包体积（解压后）：359 kB，62 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- 运行依赖：1 个
- 首次发布：2022-07-22T02:25:40.261Z
- 最新版本发布：2023-02-24T13:04:35.303Z
- 近 30 天下载量：3087540（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：28（近 12 个月 0 个）

## 中文简介

写入一次,创建支持React,Vue,Svelte等的框架组件.

## 安装

```sh
npm install @cfcs/core
```

也可以使用：`pnpm add @cfcs/core`、`yarn add @cfcs/core`、`bun add @cfcs/core`

## README

## ![](https://raw.githubusercontent.com/naver/cfcs/main/images/logo.png)  
[跨框架组件](https://npmcn.com/package/%40cfcs/core/#)

写入一次,创建支持React,Vue,Svelte等的框架组件.

[![](https://img.shields.io/npm/v/@cfcs/core.svg?style=flat-square&color=00d8ff&label=version&logo=NPM)](https://www.npmjs.com/package/@cfcs/core)  ![](https://img.shields.io/badge/language-typescript-blue.svg?style=flat-square)  [![GitHub](https://img.shields.io/github/license/naver/cfcs.svg?style=flat-square&label=%F0%9F%93%9C%20license&color=08CE5D)](https://github.com/naver/cfcs/blob/main/LICENSE) 

[![React](https://img.shields.io/static/v1.svg?label=&message=React&style=flat-square&logo=React&logoColor=white&color=61dafb)](https://github.com/naver/cfcs/tree/main/packages/react) [![Vue 2](https://img.shields.io/static/v1.svg?label=&message=Vue%202&style=flat-square&logo=Vue.js&logoColor=white&color=42b883)](https://github.com/naver/cfcs/tree/main/packages/vue2) [![Vue3](https://img.shields.io/static/v1.svg?label=&message=Vue3&style=flat-square&logo=Vue.js&logoColor=white&color=42b883)](https://github.com/naver/cfcs/tree/main/packages/vue3) [![Svelte](https://img.shields.io/static/v1.svg?label=&message=Svelte&style=flat-square&logo=svelte&logoColor=white&color=FF3E00)](https://github.com/naver/cfcs/tree/main/packages/svelte)

### [演示](https://naver.github.io/cfcs/) 编号 : [API 密码](https://naver.github.io/cfcs/docs/api/Core/Reactive/Function/reactive) 编号 : [教学](https://naver.github.io/cfcs/docs)

## \* 安装

```sh
$ npm install @cfcs/core
```

## 如何使用

### 氟氯化碳反应

氟氯化碳活性反应可以支持多个框架作为活性成分,这种活性成分基于国家,不创建UI.

![](https://raw.githubusercontent.com/naver/cfcs/main/images/cfcs-reactive.png)

**反应状态** 是一个根据特定条件变化的状态.

您可以检测状态变化,也可以创建基于条件变化的UI.

-   [**见反应文档**](https://github.com/naver/cfcs/blob/main/reactive.md)

## • 软件包

| 软件包 | 版本 | 说明 |
| :-: | :-: | :-: |
| [**@ cfcs/ 反应**](https://github.com/naver/cfcs/blob/main/packages/react/README.md) | [![version](https://img.shields.io/npm/v/@cfcs/react?style=flat-square&color=00d8ff&label=%F0%9F%94%96)](https://www.npmjs.com/package/@cfcs/react) | 氟氯化碳 [反应](https://reactjs.org/) |
| [**@cfcs/vue2 (英语)**](https://github.com/naver/cfcs/blob/main/packages/vue/README.md) | [![version](https://img.shields.io/npm/v/@cfcs/vue2?style=flat-square&color=42b883&label=%F0%9F%94%96)](https://www.npmjs.com/package/@cfcs/vue2) | 氟氯化碳 [Vue.js@2 请检查isbn=值 (帮助)](https://vuejs.org/v2/guide/index.html) |
| [**@cfcs/vue3 (中文(简体) )**](https://github.com/naver/cfcs/blob/main/packages/vue3/README.md) | [![version](https://img.shields.io/npm/v/@cfcs/vue3?style=flat-square&color=42b883&label=%F0%9F%94%96)](https://www.npmjs.com/package/@cfcs/vue3) | 氟氯化碳 [Vue.js@3 (中文(简体) )](https://v3.vuejs.org/) |
| [**@ cfcs/ svelte (帮助)**](https://github.com/naver/cfcs/blob/main/packages/svelte/README.md) | [![version](https://img.shields.io/npm/v/@cfcs/svelte?style=flat-square&color=FF3E00&label=%F0%9F%94%96)](https://www.npmjs.com/package/@cfcs/svelte) | 氟氯化碳 [丝绒](https://svelte.dev/) |

## \* 反馈

请存档 [问题](https://github.com/naver/cfcs/issues)。 。 。 .

## 许可证

`cfcs` 将在 [麻省理工学院许可证](https://github.com/naver/cfcs/blob/main/LICENSE)。 。 。 .

```
CFCs
Copyright (c) 2023-present NAVER Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```

## 常见问题

### @cfcs/core 是什么？

写入一次,创建支持React,Vue,Svelte等的框架组件\.

### 如何安装 @cfcs/core？

在项目目录运行 npm install @cfcs/core，或使用 pnpm add / yarn add / bun add。

### @cfcs/core 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @cfcs/core 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @cfcs/core 可以商用吗？

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

### @cfcs/core 的下载量有多少？

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

### @cfcs/core 还在维护吗？

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

