/currenci

List of currencies and get random currency

Primary LanguageJavaScriptMIT LicenseMIT

currenci Build Status codecov

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

License

MIT © Bu Kinoshita