Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alir3z4/node-money-currencies
- Owner: Alir3z4
- License: mit
- Created: 2015-03-30T18:17:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-31T11:29:30.000Z (almost 10 years ago)
- Last Synced: 2024-11-08T13:43:30.146Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/money-currencies
- Size: 148 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE.md
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).