1.2.1 • Published 4 years ago

is-coffee v1.2.1

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

Is it coffee?

A simple library to test whether a given input string is a coffee or not

Usage

const { isCoffee } = require('is-coffee')

const beverage = 'espresso'

if (isCoffee(beverage)) {
  // drink it up
} else {
  // dump it out
}
const { hasCoffee } = require('is-coffee')

const city = 'Austin'
const location = 'airport'
const store = 'Skymall'

hasCoffee(city)     // true
hasCoffee(location) // true
hasCoffee(store)    // true

// Coffee is everywhere ^_^
1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago