has-currency-code

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i has-currency-code

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • bukinoshita