Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alir3z4/node-money-currencies

Display money format and its filthy currencies, for all money lovers out there.
https://github.com/alir3z4/node-money-currencies

Last synced: about 2 months ago
JSON representation

Display money format and its filthy currencies, for all money lovers out there.

Awesome Lists containing this project

README

        

## Money Currencies [![Build Status](http://img.shields.io/travis/Alir3z4/node-money-currencies.svg)](https://travis-ci.org/Alir3z4/node-money-currencies) [![money-currencies](https://img.shields.io/npm/v/money-currencies.svg)](https://www.npmjs.org/package/money-currencies)

Display money format and its filthy currencies, for all money lovers out there.

## Installation

```
npm install money-currencies --save
```

## Usage

```
var MoneyCurrency = require('money-currencies');

mc = new MoneyCurrency('USD');
console.log(mc.moneyFormat(13)) // $13
console.log(mc.moneyWithCurrencyFormat(13)) // $13 USD
```

## Tests

`money-currencies` has been tested on various version of Node.js, including:

- 0.12
- 0.11
- 0.10
- iojs
- iojs-v1.0.4

```
npm test
```

## Contributing

Contributions to the project are welcome. Feel free to fork and improve.
I do my best accept pull requests in a timely manor,
especially when tests and updated docs are included.

## License

Copyright (c) 2015 Alireza Savand, contributors.

Released under the [MIT license](https://tldrlegal.com/license/mit-license).