A command-line utility for "counting down" letters & numbers, printing each iteration.
Requires Node.js 6 or higher; includes a Node Version Manager .nvmrc
for convenience.
./count-down.js <command> <value>
help
: instructionsinteger
: takes an integer & counts down to "0"- ex:
count-down integer 5
- ex:
alpha
: takes a single lowercase ASCII letter & counts down to "a"- ex:
count-down alpha f
- ex:
string
: takes a string of lowercase ASCII letters & counts down each until all characters are "a"- ex:
count-down string food
- ex:
gnirts
: same as the string command, but decreases from last character- ex:
count-down gnirts food
- ex:
Visit editorconfig.org for instructions on how to configure your IDE or editor to use the included .editorconfig
file.
Install ESLint with the Airbnb JavaScript rules.
npm i
Check coding standards:
npm run lint