1.0.0 • Published 5 years ago

has-currency-code v1.0.0

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

has-currency-code Build Status codecov

Check if given string has currency code

Install

$ yarn add has-currency-code

Usage

const hasCurrencyCode = require('has-currency-code')

hasCurrencyCode('I have USD300') // true
hasCurrencyCode('I do not have money') // false

API

hasCurrencyCode(input, options)

returns a boolean or object.

input

Type: string Required

options

Type: object

toObject

Type: boolean Default: false

If set to true it will return an object.

Related

License

MIT © Bu Kinoshita