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 - npm Package Compare versions

Comparing version 0.0.8 to 0.1.0

.github/workflows/node.js.yml

12

package.json
{
"name": "barcart",
"version": "0.0.8",
"version": "0.1.0",
"description": "find cocktails based on what you have",
"main": "cli.js",
"main": "index.js",
"scripts": {

@@ -13,5 +13,2 @@ "start": "npm run build:live",

},
"bin": {
"barcart": "./lib/index.js"
},
"repository": {

@@ -30,3 +27,2 @@ "type": "git",

"@types/string-similarity": "^4.0.0",
"@types/yargs": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^4.15.2",

@@ -40,6 +36,4 @@ "@typescript-eslint/parser": "^4.15.2",

"dependencies": {
"chalk": "^3.0.0",
"string-similarity": "^4.0.4",
"yargs": "^16.2.0"
"string-similarity": "^4.0.4"
}
}

@@ -6,25 +6,5 @@ # barcart

## run locally
* `npm install`
* `npm link`
* `npm run build`
* `barcart make manhattan`
* `yarn install`
* `yarn build`
## CLI commands
### Make
* List instructions based on a drink name: `barcart make manhattan`
* List instructions based on a drink name (with amount): `barcart make manhattan -a 2` (this is two drinks)
* List instructions for random drinks: `barcart make -r`
### Find
* List drinks based on glassware: `barcart find -g martini`
* List drinks based on liquor: `barcart find -l rum`
* List drinks based on ingredients: `barcart find -i vodka orange-juice`
#### Notes:
Liquors are normalized, this means that:
* "whisky" and "whiskey" are considerd the same thing when searching
* "white rum", "black rum", etc. are considered the same thing when searching
## Usage

@@ -36,3 +16,3 @@

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

@@ -45,3 +25,3 @@ const foo = makeByName('manhattan');

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

@@ -48,0 +28,0 @@ const foo = findByGlass('martini');

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