Naturally Processed Meals

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

    4.0.1 • 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

    Install

    npm i read-vn-number

    DownloadsWeekly Downloads

    46

    Version

    4.0.1

    License

    MIT

    Unpacked Size

    41.7 kB

    Total Files

    28

    Last publish

    Collaborators

    • hckhanh