Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

barcart

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barcart

find cocktails based on what you have

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

barcart

Everything you need to make drinks from your CLI

run locally

  • yarn install
  • yarn build

Usage

Make

  • Should return an array of objects declared in drinkInterfaces
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

FAQs

Package last updated on 27 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc