JSPM

chinese-parseint

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 226
  • Score
    100M100P100Q89618F
  • License MIT

parse Chinese numeric strings to integer

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 242000

See chi_parseInt.characters for corresponding numbers of each accepted Chinese character.