find-currency-code
v1.0.0
Published
Find currency code from given string
Downloads
5
Maintainers
Readme
find-currency-code
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
- transform-currency — Transform currency code to symbol
- has-currency-code — Check if given string has currency code
- currenci — List of currencies and get random currency
License
MIT © Bu Kinoshita