Everything you need to make drinks from your CLI
yarn install
yarn build
- Should return an array of objects declared in drinkInterfaces
import { makeByName, makeByRandom } from 'barcart/dist';
const foo = makeByName('manhattan');
const bar = makeByRandom();
- Should return an array of objects declared in drinkInterfaces
import { findByGlass, findByLiquor, findByIngredients } from 'barcart/dist';
const foo = findByGlass('martini');
const bar = findByLiquor('rum');
const baz = findByIngredients(['vodka', 'orange juice']);
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