@codemirror/next

中文文档
0.16.0发布于 2020/12/28(MIT OR GPL-3.0)ES Module近 30 天下载 1.2万

Text/code editor component

此软件包已被标记为弃用

The mono-package is no longer being upgraded. Use the package names without /next (i.e. @codemirror/view) instead.

原始使用文档

CodeMirror 6 prototype

Build Status NPM version

This is the prototype of the next version of CodeMirror, a complete rewrite.

Eventually, the content of this repository will move into different packages. For now, to reduce friction during development, it is a monorepo. Its content is published as the @codemirror/next package on npm.

To get started, make sure you are running node.js version 13. After cloning the repository, run

npm install

to install dependencies, and

npm run dev

to start a server that automatically rebuilds the bundles when the code changes and exposes a dev server on port 8090 running the demo and tests.

Please see the website for more information and docs.

This code is dual-licensed under the MIT and GPL-v3 licenses. This means that you, as user, may choose one of these licenses to abide by. I.e. if complying with the GPL is problematic for you, you can choose the more liberal MIT license.

版本与发布记录

@codemirror/next 共发布 23 个版本,首次发布于 2019/10/11;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.16.0latest2020/12/285 年前
0.15.02020/12/045 年前
0.14.02020/10/246 年前
0.13.12020/10/146 年前
0.13.02020/10/016 年前
0.12.02020/09/116 年前

关于 @codemirror/next 的常见问题

@codemirror/next 是什么?

Text/code editor component注意:该包已被作者标记为弃用——The mono-package is no longer being upgraded. Use the package names without /next (i.e. @codemirror/view) instead.

如何安装 @codemirror/next?

在项目目录运行 npm install @codemirror/next,或使用 pnpm add / yarn add / bun add。

@codemirror/next 支持 TypeScript 吗?

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

@codemirror/next 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@codemirror/next 可以商用吗?

@codemirror/next 使用 (MIT OR GPL-3.0) 许可。可在 MIT、GPL-3.0 中任选其一遵守。选择 MIT 时,宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@codemirror/next 的下载量有多少?

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

@codemirror/next 还在维护吗?

最新版本 0.16.0 发布于 2020/12/28(5 年前);至今共发布 23 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/10/11。作者已将其标记为弃用,新项目建议寻找替代方案。