This is a slidedeck built with reveal-md. You can view it as markdown or through reveal-md
.
npm install -g reveal-md
reveal-md Building-A-Node-CLI.md --theme moon
# change directory to the subdirectory wehre we built our example tool
cd thingifier
# install dependencies
npm install
# "globally" install the thingifier CLI
npm link
thingifier --sean cool --ethan smart --aaron 2
export THINGIFIER_FOO=foo; export THINGIFIER_BAR__BAZ=1;
# This assumes you have already run `export THINGIFIER_BAR__BAZ=1`
thingifier --sean cool --ethan smart --aaron 2 --bar.baz=2
npm test
This will run the tape
CLI at ./node_modules/.bin/tape
.
npm run example
Take a look at all of the environment variables npm adds for you.