ragnar-data
Get, format, filter, and sort the data for each Ragnar race.
Requires Node >=6
Install
npm install ragnar-data --save# or for the CLI npm install ragnar-data --global
Usage
JS
const ragnarData = // Returns a promist
CLI
ragnar-data \ # A shortcut for filtering based on type --type trail \ # You can always use a properly encoded json object to filter --filter '{"type": "trail"}' \ # Same as above --pick name,elevation_gain,distance \ --omit legs \ --sort distance,desc \ --cache .ragnar-data \ --refresh \ # How to output the CLI result [table, json, markdown] --output table # See all the options ragnar-data --help
LICENSE
MIT