【文件属性】:
文件名称:ChinaCurrency:中文金额大写
文件大小:128KB
文件格式:ZIP
更新时间:2021-08-03 11:13:04
JavaScript
Format-RMB
Convert the Arabic numeral to the Chinese numeral in capital letters
Es5 and ES6 modules are also supported
To two decimal places, up to one trillion (1,000,000,000,000)
Support Typescript
将阿拉伯数字转变为中文金额大写
同时支持es5,es6模块
精确到小数点后两位,上限为1兆 = 1,0000,0000,0000
支持Typescript
Installation
Using npm:
$ npm install --save format-rmb
Test
$ npm run test
Usage
import formatRMB from 'format-rmb';
cons
【文件预览】:
ChinaCurrency-master
----.gitignore(14B)
----package.json(926B)
----package-lock.json(285KB)
----src()
--------index.js(3KB)
--------index.d.ts(441B)
----webpack.config.js(859B)
----dist()
--------index.js(2KB)
--------index.d.ts(441B)
--------index.es6.js(2KB)
----README.md(5KB)
----babel.config.js(199B)
----test()
--------index.spec.js(2KB)
----yarn.lock(201KB)