Skip to content

kalebdf/is-coffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ^_^

About

Is it a coffee or not?

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •