Arguments parsing
Native
The process.argv
property returns an array containing the command-line arguments passed when the Node.js process was launched.
It returns an arrayăThe first element is process.execPath, and the second is the javascript script file pathďźand others are parametersă
Commander (convenient cli arguments handles)
- Method chaining
- process arguments
- autohelp
yargs
Build interactive command line tools, by parsing arguments and generating an elegant user interface.
yargs
yargs ⢠Updated Oct 18, 2024
Â
Iterative commands
inputănumberăconfirmălistărawlistăexpandăcheckboxăpasswordăEditor......
- compatible with Windows/ OSX /Linux
React for interactive command-line apps
ink
vadimdemedes ⢠Updated Oct 18, 2024
Â
chalk - friendly outputs
why chalk can output color texts on commandďź
ANSI Escape Code
It provides the same component-based UI building experience that React offers in the browser, but for command-line apps
Node template rendering
Invoke other programs (shell.js
ăexeca
)
- async operations to use computational intense operations
- Node use child_process module to create new process
- support bash commands cross different platforms
- get results synchronously
- support Shebang cross different platforms
- acquire process exit signal
Â
Other packages
Run multiple npm-scripts in parallel or sequential
check config schema
Event emitter working in browser
Hotkey configuration
hotkeys-js
jaywcjlove ⢠Updated Oct 17, 2024