@cfcs/core

中文文档
0.1.0发布于 2023/02/24MITTypeScriptESM + CJS近 30 天下载 308.8万

Write once, create framework components that supports React, Vue, Svelte, and more.

原始使用文档
文档目录8 节
  1. Cross Framework Components
  2. Demo / API / Tutorials
  3. ⚙️ Installation
  4. 🏃 How to use
  5. CFCs Reactive
  6. 📦 Packages
  7. 📝 Feedback
  8. 📜 License


Cross Framework Components

Write once, create framework components that supports React, Vue, Svelte, and more.

    GitHub 

React Vue 2 Vue3 Svelte

Demo / API / Tutorials

⚙️ Installation

$ npm install @cfcs/core

🏃 How to use

CFCs Reactive

CFCs Reactive can support multiple frameworks as a Reactive Component, a utility component that is state-based and does not create a UI.

Reactive State is a state that changes according to a specific condition.

You can detect state changes and also create a UI that changes based on conditions.

📦 Packages

PackageVersionDescription
@cfcs/reactversionCFCs for React
@cfcs/vue2versionCFCs for Vue.js@2
@cfcs/vue3versionCFCs for Vue.js@3
@cfcs/svelteversionCFCs for Svelte

📝 Feedback

Please file an Issue.

📜 License

cfcs is released under the MIT 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 共发布 28 个版本,首次发布于 2022/07/22;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.1.0latest2023/02/243 年前
0.0.262023/02/233 年前
0.0.252023/02/233 年前
0.0.242023/02/233 年前
0.0.232023/02/233 年前
0.0.222023/02/173 年前

其他发布通道:beta → 0.0.15-beta.1。

关于 @cfcs/core 的常见问题

@cfcs/core 是什么?

Write once, create framework components that supports React, Vue, Svelte, and more.

如何安装 @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 和提交记录判断。