0.0.8 • Published 6 years ago

@jiumao/dharma v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago