Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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