@coders-tm/vue-number-format

中文文档
3.35.4发布于 2025/04/04MITTypeScriptESM + CJS零依赖近 30 天下载 3.5万

Easy formatted numbers, currency and percentage with input/directive mask for Vue.js

原始使用文档
文档目录4 节
  1. Installation
  2. Features
  3. Documentation
  4. Support me

npm Version npm Downloads github Stars Bundlephobia License Sponsor Me on GitHub

vue-number-format

Vue Number Format is used to format a number using fixed-point notation. It can be used to format a number with a specific number of digits to the right of the decimal.

Installation

npm install @coders-tm/vue-number-format
or
yarn add @coders-tm/vue-number-format

Features

  • Lightweight
  • Dependency free
  • Component or Directive flavour
  • Format as you type
  • Built-in validation
  • Supports both Vue 3 and Vue 2.

Documentation

Please refer to the project home page for a detailed documentation.

Support me

If you find my work helpful, or you want to support the development, star the repo or buy me a coffee:

ko-fi

版本与发布记录

@coders-tm/vue-number-format 共发布 117 个版本,首次发布于 2021/09/12;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.35.4latest2025/04/041.6 年前
3.35.32025/02/261.7 年前
3.35.22024/12/131.9 年前
3.35.02024/12/121.9 年前
3.34.12023/12/302 年前
3.34.02023/10/253 年前

其他发布通道:next → 3.1.16。

关于 @coders-tm/vue-number-format 的常见问题

@coders-tm/vue-number-format 是什么?

Easy formatted numbers, currency and percentage with input/directive mask for Vue.js

如何安装 @coders-tm/vue-number-format?

在项目目录运行 npm install @coders-tm/vue-number-format,或使用 pnpm add / yarn add / bun add。

@coders-tm/vue-number-format 支持 TypeScript 吗?

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

@coders-tm/vue-number-format 支持 ESM 还是 CommonJS?

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

@coders-tm/vue-number-format 可以商用吗?

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

@coders-tm/vue-number-format 的下载量有多少?

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

@coders-tm/vue-number-format 还在维护吗?

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