amount-words

1.0.6 • Public • Published

用于将小写数字金额转换成大写金额

使用

import { convert, singleConvert} from 'amount-words'

// 转换参数
const options = {};

const amount =  123;

const big = convert(amount, options)

// ==> 壹佰贰拾叁圆整

// 单个数字转换

const single = singleConvert(1)
// ==> '壹'

OPTIONS

1. suffix
  后缀,默认为空

2. prefix
  前缀, 默认为空


Package Sidebar

Install

npm i amount-words

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

33.2 kB

Total Files

6

Last publish

Collaborators

  • huicanvie