money-parser-cn

0.0.1 • Public • Published

中文金额解析器

使用

npm i @lvfang/money-parser-cn --save
const result = parse('美元(大写)壹佰貳拾萬零陸仟圆整(US$1,206,000)')
console.log(result)

输出:

{ currency: 'USD',
  digital: { literal: '1,206,000', index: 20, value: 1206000 },
  chinese: { literal: '壹佰貳拾萬零陸仟', index: 6, value: 1206000 },
  isMatch: true }

测试

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i money-parser-cn

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

2.29 kB

Total Files

3

Last publish

Collaborators

  • nexushubs