Skip to content

drinkingandcoding/barcart

Repository files navigation

barcart

Everything you need to make drinks from your CLI

run locally

  • yarn install
  • yarn build

Usage

Make

import { makeByName, makeByRandom } from 'barcart/dist';

const foo = makeByName('manhattan');
const bar = makeByRandom();

Find

import { findByGlass, findByLiquor, findByIngredients } from 'barcart/dist';

const foo = findByGlass('martini');
const bar = findByLiquor('rum');
const baz = findByIngredients(['vodka', 'orange juice']);

Other Utils

import { getRandomInt, normalizeLiquor, findByIngredients } from 'barcart/dist';

const foo = getRandomInt(10); // num 0-10
const bar = normalizeLiquor('whisky'); // whisky
const baz = capitalizeFirstLetter('foo bar'); // Foo bar
const drink = findSimilarDrink('Vesperr') // Should return an array of objects declared in drinkInterfaces

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published