fluxsauce / count-down

A command-line utility for "counting down" letters & numbers, printing each iteration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

count-down

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.

Usage

./count-down.js <command> <value>

Commands

  • help: instructions
  • integer: takes an integer & counts down to "0"
    • ex: count-down integer 5
  • alpha: takes a single lowercase ASCII letter & counts down to "a"
    • ex: count-down alpha f
  • string: takes a string of lowercase ASCII letters & counts down each until all characters are "a"
    • ex: count-down string food
  • gnirts: same as the string command, but decreases from last character
    • ex: count-down gnirts food

Development

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

About

A command-line utility for "counting down" letters & numbers, printing each iteration.


Languages

Language:JavaScript 100.0%