1.0.4 • Published 9 years ago

chipotlejs v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

chipotlejs Build Status npm version

Chipotle + JavaScript

Installation

Use npm to install:

$ npm i chipotlejs

Usage

First, you'll need to require() the library:

var chipotle = require('chipotlejs');

Creating a new Burrito object:

var myFood = chipotle.createBurrito('steak', ['white rice', 'black beans'], ['sour cream', 'hot salsa', 'lettuce']);

API

chipotlejs#createBowl(meat, veggies, extras, knowAboutGuacamoleCost)

Create a burrito bowl.

Parameters

  • meat <String>
  • veggies [ <String>, ... ]
  • extras [ <String>, ... ]
  • knowAboutGuacamoleCost <Bool>

Returns

  • <Bowl>

chipotlejs#createBurrito(meat, veggies, extras, knowAboutGuacamoleCost)

Create a burrito.

Parameters

  • meat <String>
  • veggies [ <String>, ... ]
  • extras [ <String>, ... ]
  • knowAboutGuacamoleCost <Bool>

Returns

  • <Burrito>

chipotlejs#createTaco(tacoType, hardOrSoft, meat, veggies, extras, knowAboutGuacamoleCost)

Create a taco.

Parameters

  • tacoType <String>
  • hardOrSoft <String>
  • meat <String>
  • veggies [ <String>, ... ]
  • extras [ <String>, ... ]
  • knowAboutGuacamoleCost <Bool>

Returns

  • <Taco>

chipotlejs#createSalad(meat, veggies, extras, knowAboutGuacamoleCost)

Create a salad.

Parameters

  • meat <String>
  • veggies [ <String>, ... ]
  • extras [ <String>, ... ]
  • knowAboutGuacamoleCost <Bool>

Returns

  • <Salad>