find-currency-code

Find currency code from given string

MIT License

Downloads
8
Stars
1
Committers
3

find-currency-code Build Status codecov

Find currency code from given string

Install

$ yarn add find-currency-code

Usage

const findCurrencyCode = require('find-currency-code')

findCurrencyCode('I have USD300')
// => USD

findCurrencyCode('I do not have money')
// => undefined

API

findCurrencyCode(input)

Returns a string

input

Type: string Required

Related

License

MIT © Bu Kinoshita

Package Rankings
Top 12.87% on Npmjs.org
Badges
Extracted from project README
Build Status codecov