# barcart

> find cocktails based on what you have

Latest version **0.1.2** (published 2021-03-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install barcart
pnpm add barcart
yarn add barcart
bun add barcart
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2021-03-27 |
| First published | 2021-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 62 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | ryelo |

## Links

- npm: https://www.npmjs.com/package/barcart
- Repository: https://github.com/ryelo/barcart
- Homepage: https://github.com/ryelo/barcart#readme
- Issues: https://github.com/ryelo/barcart/issues
- npm.io page: https://npm.io/package/barcart

## Dependencies (2)

- [string-similarity](https://npm.io/package/string-similarity.md) ^4.0.4
- [@types/string-similarity](https://npm.io/package/@types/string-similarity.md) ^4.0.0

## Recent versions

- 0.1.2 (latest) — 2021-03-27
- 0.1.1 — 2021-03-20
- 0.1.0 — 2021-03-14
- 0.0.8 — 2021-03-14
- 0.0.7 — 2021-03-07
- 0.0.6 — 2021-03-07
- 0.0.5 — 2021-03-07
- 0.0.4 — 2021-03-07
- 0.0.3 — 2021-03-07
- 0.0.2 — 2021-03-05
- 0.0.1 — 2021-03-02

## README

# 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](https://github.com/drinkingandcoding/barcart/blob/main/src/interfaces/drinkInterface.ts)

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

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

### Find

* Should return an array of objects declared in [drinkInterfaces](https://github.com/drinkingandcoding/barcart/blob/main/src/interfaces/drinkInterface.ts)

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

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

### Other Utils
```js
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
```

---
_Source: https://npm.io/package/barcart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
