@jiumao/dharma
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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);
// => 一

Readme

Keywords

none

Package Sidebar

Install

npm i @jiumao/dharma

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

102 kB

Total Files

135

Last publish

Collaborators

  • wangxingkang