Change amount into text for ringgit malaysia
$ npm install --save rm2text
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT