@bencentra/pint
Convert BeerXML recipes to different batch sizes. Conveniently scale recipes up or down!
Last updated 2 years ago by bencentra .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bencentra/pint 
SYNC missed versions from official npm registry.

pint

Convert BeerXML recipes to different batch sizes. Conveniently scale recipes up or down!

I download BeerXML files from Brewtoad recipes.

Usage

$ pint -h
Usage: pint [options] <file>

Options:

  -V, --version     output the version number
  -s --size <size>  Batch size
  --json            Output as JSON instead of text
  -h, --help        output usage information

Example

$ pint examples/lemon-saison-1.xml -s 1
##################
## LEMON SAISON ##
##################
┌─────────┬────────────────┬──────┬───────┬──────────┐
│ (index) │      name      │ size │ unit  │  style   │
├─────────┼────────────────┼──────┼───────┼──────────┤
│    0    │ 'Lemon Saison' │  1   │ 'gal' │ 'Saison' │
└─────────┴────────────────┴──────┴───────┴──────────┘
FERMENTABLES
┌─────────┬────────────────────┬─────────┬──────┐
│ (index) │        name        │ amount  │ unit │
├─────────┼────────────────────┼─────────┼──────┤
│    0    │ 'Pilsen Light LME' │ '10.60' │ 'oz' │
│    1    │ 'Pilsen Light DME' │ '8.60'  │ 'oz' │
│    2    │    'Honey Malt'    │ '3.20'  │ 'oz' │
└─────────┴────────────────────┴─────────┴──────┘
HOPS
┌─────────┬──────────────┬────────┬──────┬──────────┐
│ (index) │     name     │ amount │ unit │   time   │
├─────────┼──────────────┼────────┼──────┼──────────┤
│    0    │ 'Citra (US)' │ '0.08' │ 'oz' │ '60 min' │
│    1    │ 'Citra (US)' │ '0.12' │ 'oz' │ '1 min'  │
└─────────┴──────────────┴────────┴──────┴──────────┘
MISC
┌─────────┬────────────────────┬────────┬───────┬─────────┐
│ (index) │        name        │ amount │ unit  │  time   │
├─────────┼────────────────────┼────────┼───────┼─────────┤
│    0    │ 'Whirlfloc Tablet' │ '1.00' │ 'ea.' │ '5 min' │
│    1    │    'Lemon Peel'    │ '0.60' │ 'ea.' │ '5 min' │
└─────────┴────────────────────┴────────┴───────┴─────────┘
YEAST
┌─────────┬─────────────────┬──────────┐
│ (index) │      name       │  brand   │
├─────────┼─────────────────┼──────────┤
│    0    │ 'French Saison' │ 'Wyeast' │
└─────────┴─────────────────┴──────────┘

TODO

  • Better output than console.table()
  • Can a recipe be measured in kilograms?
  • Output other formats (Markdown?)

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |