Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Generate a random CrossFit Workout Of the Day
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
package.json
readme.md

readme.md

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

Something went wrong with that request. Please try again.