https://github.com/oncomouse/drink-description
JavaScript Library That Generates Tiki Drink Descriptions
https://github.com/oncomouse/drink-description
Last synced: about 1 year ago
JSON representation
JavaScript Library That Generates Tiki Drink Descriptions
- Host: GitHub
- URL: https://github.com/oncomouse/drink-description
- Owner: oncomouse
- Created: 2016-07-30T16:21:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-30T21:15:35.000Z (almost 10 years ago)
- Last Synced: 2025-02-21T13:03:02.873Z (over 1 year ago)
- Language: JavaScript
- Size: 79.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# drink-description
Generate tiki drink descriptions.
This library uses [tracery](https://github.com/v21/tracery/) to generate descriptions of tropical (tiki) cocktails from lists of ingredients. The description grammar was sourced from menus at [Smuggler's Cove](http://www.smugglerscovesf.com/), [Latitude 29](http://www.latitude29nola.com/), [Trader Vic's](http://tradervicsatl.com/), and the [UNLV Libraries' Menus Collection](http://digital.library.unlv.edu/objects/menus) (which contains several historic Don the Beachcomber Menus).
## Usage
Node / CommonJS Loader:
~~~ javascript
var drinkDescription = require('drink-description').default;
console.log(drinkDescription(['Lime','Jamaican Rum', 'Demerara Syrup', 'Angostura Bitters'])); // Produce a drink description for this basic Planter's Punch
~~~
Browser:
Include `browser/drink-description.min.js` to add `drinkDescription()` to your project.