This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
v2.0.0
- Bump mocha, typescript to latest
- Upgrade some type packages and dev dependencies
Breaking changes
Import and use in ES6+:
import readNumber from 'read-vn-number'
readNumber('19990000') // or readNumber(19990000)
// output: mười chín triệu chín trăm chín mươi nghìn
or commonjs way:
const readNumber = require('read-vn-number')
readNumber('100000000')
// output: một trăm triệu
If you are working with TypeScript, you can directly import from the source:
import readNumber from 'read-vn-number/src'
readNumber('1000000000')
// output: một tỷ