6to5 turns ES6+ code into vanilla ES5, so you can use next generation features today.
For more information view the documentation. For support visit the gitter room.
Turn ES6 code into readable vanilla ES5 with source maps
6to5 is now 'babel': https://babeljs.io/blog/2015/02/15/not-born-to-die
6to5 turns ES6+ code into vanilla ES5, so you can use next generation features today.
For more information view the documentation. For support visit the gitter room.
6to5 共发布 258 个版本,首次发布于 2014/10/01;过去 12 个月发布了 0 个版本。
| 版本 | 发布日期 | 距今 |
|---|---|---|
3.6.5latest | 2015/02/14 | 11 年前 |
3.6.4 | 2015/02/14 | 11 年前 |
3.6.3 | 2015/02/14 | 11 年前 |
3.6.2 | 2015/02/13 | 11 年前 |
3.6.1 | 2015/02/13 | 11 年前 |
3.6.0 | 2015/02/12 | 11 年前 |
Turn ES6 code into readable vanilla ES5 with source maps注意:该包已被作者标记为弃用——6to5 is now 'babel': https://babeljs.io/blog/2015/02/15/not-born-to-die
在项目目录运行 npm install 6to5,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 6to5、6to5-minify、6to5-node、6to5-runtime,可以用 npx 6to5 直接运行。
该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/6to5 是否存在。
以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。
6to5 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。
根据 npm 官方下载统计,6to5 在 2026/10/04 – 2026/11/02 这 30 天内被下载 13,761 次,日均约 459 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。
最新版本 3.6.5 发布于 2015/02/14(11 年前);至今共发布 258 个版本,其中过去 12 个月发布了 0 个;首次发布于 2014/10/01。作者已将其标记为弃用,新项目建议寻找替代方案。