This package has been deprecated

Author message:

This package is no longer maintained, please migrate to the new package: https://s.id/vn-number

read-vn-number
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

read-vn-number

This is a helper that convert a number to a string like the way a real Vietnamese read it.

Unit Tests Language grade: JavaScript deepcode Known Vulnerabilities Publish NPM Package Publish GPR Package

Installation

# npm
npm i read-vn-number

# yarn
yarn add read-vn-number

GitHub Package Registry (GPR)

https://github.com/hckhanh/read-vn-number/packages

Usage

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

License

MIT © Khanh Hoang

Package Sidebar

Install

npm i read-vn-number

Weekly Downloads

118

Version

4.1.0

License

MIT

Unpacked Size

30.4 kB

Total Files

27

Last publish

Collaborators

  • hckhanh