Socket
Socket
Sign inDemoInstall

read-vn-number

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    read-vn-number

Read Vietnamese number like a Vietnamese


Version published
Weekly downloads
194
decreased by-51.74%
Maintainers
1
Install size
29.7 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 26 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc