1.0.0 • Published 5 years ago

find-currency-code v1.0.0

Weekly downloads
58
License
MIT
Repository
github
Last release
5 years ago

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