Package Exports
- chinese-parseint
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chinese-parseint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
chinese-parseint
parse Chinese numeric strings to integer
Install
npm install chinese-parseint
Usage
var chi_parseInt = require('chinese-parseint');
console.log(chi_parseInt('一千零一十')); ///< Outputs 1010
console.log(chi_parseInt('二十四萬二')); ///< Outputs 242000See chi_parseInt.characters for corresponding numbers of each accepted Chinese character.