stevenschobert / coffee-bear

Coffee measurements from blackbearcoffee.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coffee-bear

Build Status

Coffee measurements from blackbearcoffee.com

Example Data

{
  "2": {
    "coffee": {
      "ounces": "0.75",
      "grams": "21.3",
      "teaspoons": "12",
      "tablespoons": "4",
      "cups": "1/4"
    },
    "water": {
      "fluidounces": "16",
      "cups": "2",
      "pints": "1",
      "quarts": "1/2",
      "halfgallons": "1/4",
      "milliliters": "473",
      "liters": "0.47"
    }
  }
}

Installation

npm install --save coffee-bear

Usage

var coffeeBear = require('coffee-bear');

coffeeBear(function(err, data) {
  if (err) { throw err; }

  // data is an object with keys 0-12
  // correspoding to the cups of coffee
  console.log(data);
});

If you want to see a more detailed example, check out coffee-api, which uses express.

Todo

  • Translate all measurement values into floating point numbers.

About

Coffee measurements from blackbearcoffee.com

License:MIT License


Languages

Language:JavaScript 100.0%