money-parser-cn
v0.0.1
Published
Parses money string in natural language of Chinese
Downloads
2
Readme
中文金额解析器
使用
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