1.0.1 • Published 6 years ago

@bencentra/pint v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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?)