is-coffee
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i is-coffee

    Weekly Downloads

    9

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    7.84 kB

    Total Files

    7

    Last publish

    Collaborators

    • kalebdf