iba-cocktail-list
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

iba-cocktail-list

The IBA Official Cocktail List in JSON format.

Includes all drinks, as they are presented in the 2020 revision of the list; the Unforgettables, the Contemporary Classics, and the New Era drinks.

NOTE: This package is pre-v1.0. No changes to the data's existing fields is planned, though new fields may be added before reaching v1.0. All drinks currently included are believed to be correct.

Usage

This package is provided as an ESM module. A CommonJS version is not provided.

Import all the drinks as a single array with:

import { drinks } from 'iba-cocktail-list';

Or import one of IBA's collections:

The Unforgettables:

import { unforgettables } from 'iba-cocktail-list';

The Contemporary Classics:

import { contemporaryClassics } from 'iba-cocktail-list';

The New Era:

import { newEra } from 'iba-cocktail-list';

Types

Typescript types are provided within this package.

type Drink

import { Drink } from 'iba-cocktail-list';

Every drink exported by this package is a Drink type.

type Ingredient

import { Ingredient } from 'iba-cocktail-list';

An Ingredient is anything that goes into a Drink. Spirits, mixers, and garnishes are all Ingredients.

type Quantity

import { Quantity } from 'iba-cocktail-list';

A Quantity represents a specific amount of an ingredient. Formal quantities, such a "30ml", have their units (ml) and count (30) specified. Informal quantities, such as "a few drops", don't.

License

The original recipes all belong to the International Bartenders Association. This package contains only widely-distributed information, sourced from the IBA at iba-world.com.

Source code was contributed by @jych. This code is provided under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i iba-cocktail-list

Weekly Downloads

1

Version

0.7.0

License

MIT

Unpacked Size

159 kB

Total Files

17

Last publish

Collaborators

  • jych