Skip to content

bukinoshita/currenci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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