Find currency code from given string
$ yarn add find-currency-code
const findCurrencyCode = require('find-currency-code')
findCurrencyCode('I have USD300')
// => USD
findCurrencyCode('I do not have money')
// => undefined
Returns a string
Type: string
Required
- 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
MIT © Bu Kinoshita