This is my Github template to create nodejs based CLIs.
This is a GitHub template repository for creating a NodeJS-based CLI application written in TypeScript. It comes pre-configured with yargs for command-line argument parsing, chalk for terminal string styling, and ora for elegant terminal spinners.
- TypeScript support
- Command-line argument parsing with yargs
- Terminal string styling with chalk
- Elegant terminal spinners with ora
- Dev container support (configuration to be added)
- Click the "Use this template" button to create a new repository based on this template.
- Clone your new repository to your local machine.
- Run
npm install
to install the dependencies. - Start developing your CLI application in the
src/index.ts
file.
npm run build
: Compile TypeScript to JavaScriptnpm run start
: Run the compiled JavaScriptnpm run dev
: Run the TypeScript code directly using ts-node
This project is licensed under the MIT License.