find-currency-code

1.0.0 • Public • Published

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 Sidebar

Install

npm i find-currency-code

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.51 kB

Total Files

5

Last publish

Collaborators

  • bukinoshita