currenci
v1.0.1
Published
List of currencies and get random currency
Downloads
7
Maintainers
Readme
currenci
List of currencies and get random currency
Install
$ yarn add currenci
Usage
const currenci = require('currenci')
currenci.random()
// => { "name": "Canadian Dollar", "symbol": "$", "code": "CAD" }
currenci.list
// => [ { "name": "US Dollar", "symbol": "$", "code": "USD" }, ...]
API
currenci
.list
Returns an array
.random()
Returns a random currency
Related
- transform-currency — Transform currency code to symbol
- has-currency-code — Check if given string has currency code
- find-currency-code — Find currency code from given string
License
MIT © Bu Kinoshita