Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanhauhau/rm2text
Change amount into text for ringgit malaysia
https://github.com/tanhauhau/rm2text
Last synced: 21 days ago
JSON representation
Change amount into text for ringgit malaysia
- Host: GitHub
- URL: https://github.com/tanhauhau/rm2text
- Owner: tanhauhau
- License: mit
- Created: 2016-05-06T16:30:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-06T17:22:05.000Z (over 8 years ago)
- Last Synced: 2024-08-09T14:03:49.546Z (3 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rm2text
[![travis status](https://img.shields.io/travis/tanhauhau/rm2text.svg)](https://travis-ci.org/tanhauhau/rm2text)
[![npm version](https://img.shields.io/npm/v/rm2text.svg)](https://www.npmjs.com/package/rm2text)
[![npm download](https://img.shields.io/npm/dt/rm2text.svg)](https://www.npmjs.com/package/rm2text)> Change amount into text for ringgit malaysia
# Installation
```bash
$ npm install --save rm2text
```## Usage
```javascript
var rm2text = require('rm2text');
rm2text(30,120.40); //tiga juta seratus dua puluh ringgit empat puluh sen
var skandal = rm2text('rm420,000,000') //empat ratus dua puluh juta ringgit
```## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D# License
MIT