Skip to content

inksmallfrog/inksmallfrog-chinese-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USAGE

npm install --save inksmallfrog-chinese-number
import {numberToChinese, chineseToNumber} from 'inksmallfrog-chinese-number';

const test_number = 200000;
const test_chinese = '二十万'

numberToChinese(test_number); //二十万
chineseToNumber(test_chinese); //200000

NOTES

This lib can only handle postive integer and can't give any error information!

About

A number converter for Chinese

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published