0.1.5 • Published 9 years ago

brewscribe v0.1.5

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

Brewscribejs

Brewscribejs is a Beersmith2 (.bsmx) file parser for node.js. It is based off of cadwallion's ruby version at cadwallion/brewscribe

Installation

npm install brewscribe

Usage

To start, you can import your .bsmx file with Brewscribe.import(file). This will return a Document object, containing all the parsed information within the file. Currently, only Recipe objects will be parsed.

By default, Brewscribe will set a text property for each attribute of the recipe, and if it has a parser object it will attempt to further parse the data.

An example of this is found in IngredientList:

var Brewscribe = require('brewscribe');

Brewscribe.import(__dirname + '/brewlog.bsmx', function(err, document){
  var recipe = document.recipes[0];
  console.log(recipe.name + ' - ' + recipe.type + ' - ' + recipe.abv);
});
0.1.5

9 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago