https://github.com/hckhanh/demo-github-actions
https://github.com/hckhanh/demo-github-actions
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hckhanh/demo-github-actions
- Owner: hckhanh
- License: mit
- Created: 2019-08-20T14:59:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T05:40:55.000Z (about 2 years ago)
- Last Synced: 2025-01-13T06:44:59.170Z (4 months ago)
- Language: TypeScript
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# read-vn-number
A number reader in Vietnamese language helperThis is a helper that convert a number to string like the way a Vietnamese read it.
This library requires **Node.js 6.x** and above.[](https://travis-ci.org/hckhanh/read-vn-number)
[](https://codeclimate.com/github/hckhanh/read-vn-number/test_coverage)
[](https://codeclimate.com/github/hckhanh/read-vn-number/maintainability)
[](https://snyk.io/test/github/hckhanh/read-vn-number?targetFile=package.json)## Installation
```bash
# npm
npm i read-vn-number# yarn
yarn add read-vn-number
```## Usage
Import and use in **ES6**+:
```js
import NumberReader from 'read-vn-number'NumberReader.read('19990000')
// output: mười chín triệu chín trăm chín mươi nghìn
```or **commonjs** way:
```js
const NumberReader = require('read-vn-number')NumberReader.read('100000000')
// output: một trăm triệu
```## License
[MIT](LICENSE) © Khanh Hoang