wod

Generate a random CrossFit Workout Of the Day

npm install wod
2 downloads in the last week
8 downloads in the last month

WOD

wod is a node.js module to generate a CrossFit Workout Of the Day (WOD)

Build Status

Keynote

Get a random WOD from 16 WODs categories:

  • Weightlifting
  • Endurance
  • Bodyweight
  • AMRAP...

Based on the awesome 5.071 unique WODs of THEWODSHOP. This is not sponsored, supported, or affiliated with THEWODSHOP.

Installation

You can install wod and its dependencies with npm:

npm install wod.

Usage

var wod = require('wod');    

// Generate a random WOD from all workouts
wod.getone(function(err,workouts){
    if (err) console.log(err);
    var random_wod = workouts[0];
    console.log(random_wod);
});

// Generate a list of random WODs from input categories
var wodsCat = ['weightlifting','bodyweight','emotm'];
wod.random(function(err,workouts){
    if (err) console.log(err);
    for(var i=0;i<workouts.length;i++)
        console.log(workouts[i]);
});

Methods

wod.random([categories], callback);
wod.getone(callback);

With

  • categories, optional, array containing list of WODs categories
  • callback with error return and WODs results.

Callback receives (error, response).

Running tests

To run the tests under node you will need mocha and should installed (it's listed as a devDependencies so npm install from the checkout should be enough), then do

$ npm test

Project status

wod is currently maintained by Yassine Azzout.

Authors and contributors

Current

License

MIT license

npm loves you