0.0.8 • Published 5 years ago

@jiumao/dharma v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

dharma

NPM version NPM downloads

前端工具库 库已更名为awe-utils 该包停止维护

使用

  1. 安装依赖

npm install @jiumao/dharma || yarn add @jiumao/dharma

  1. 使用
import { numberToChinese } from '@jiumao/dharma';

// 一
console.log(numberToChinese(1));

// 一万
console.log(numberToChinese(10000));

API

numberToChinese

数字转中文工具方法 numberToChinese(number: number): string

  • 引入版本

0.0.1

  • 参数

number(number): 需要转换的数字

  • 返回值

(string): 转换后的文本

  • 例子
numberToChinese(1);
// => 一
0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago