1.0.1 • Published 2 years ago
super_sexy_cli v1.0.1
SexyCLI
Step 1: Include #! shebang
Like this:
#!/usr/bin/env node
Shebang is included when writing a command line script for 3rd party to use.
Step 2: Change the package type to module so we are using the ESM method to import packages
- go to
package.json
- add
"type":"module",
Note: NODE.JS supports top level function calls like calling await outside an async function.
NPM packages explained:
- Inquirer = to collect user input from many types like list items and text input.
- chalk = to print colored text to console
- animation = to print animated text to console
- createSpinner = to display loading spinner to console
- figlet = to print banner text to console
- gradient = to print gradient text to console
Tutorial Video Source: https://youtu.be/_oHByo8tiEY