@bokeh/numbro

中文文档
1.6.2发布于 2020/03/05CommonJS零依赖近 30 天下载 5.2万

Format and manipulate numbers.

原始使用文档

numbro

Join the chat at https://gitter.im/foretagsplatsen/numbro

A javascript library for formatting and manipulating numbers.

Website and documentation

Travis Build Status

Master Build Status

Develop Build Status

NPM

NPM

Contributing

Please submit all pull requests to the develop branch.

  1. Fork the library

  2. Install grunt

  3. Run npm install to install dependencies

  4. Add your tests to the files in /tests

  5. To test your tests, run grunt test

  6. When all your tests are passing, submit a pull request to the develop branch.

Languages

Languages names follows the Microsoft culture name convention as found here. If Microsoft does not have a code for the country/locale combination, use the format lang-locale where the language code is a 2 letter abbreviation from the list of ISO 639-1 language codes and the localecode is from the list of ISO 3166-1 country codes

Language translations will not be merged without unit tests.

See the english unit tests for an example.

Changelog

See CHANGELOG.md.

Acknowledgements

numbro is forked from Adam Draper's project Numeral.js, which was in turn inspired by and heavily borrowed from Moment.js.

License

Copyright © 2014 Adam Draper

Copyright © 2015 Företagsplatsen AB


Distributed under the MIT license. If you want to know more, see the LICENSE file.

The original license file for Numeral.js can be found in LICENSE-Numeraljs

版本与发布记录

@bokeh/numbro 共发布 1 个版本,首次发布于 2020/03/05;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.6.2latest2020/03/056 年前

关于 @bokeh/numbro 的常见问题

@bokeh/numbro 是什么?

Format and manipulate numbers.

如何安装 @bokeh/numbro?

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

@bokeh/numbro 支持 TypeScript 吗?

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

@bokeh/numbro 支持 ESM 还是 CommonJS?

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

@bokeh/numbro 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js *。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bokeh/numbro 可以商用吗?

@bokeh/numbro 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@bokeh/numbro 的下载量有多少?

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

@bokeh/numbro 还在维护吗?

最新版本 1.6.2 发布于 2020/03/05(6 年前);至今共发布 1 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/03/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。