package
Command line arguments parser and stringifier
npm install shellGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 7 packages.
376.4 kB
Includes dependencies.
This project demonstrates the usage of the Shell library for creating command-line tools that parse arguments and route function calls based on those arguments. The Shell library uses a declarative syntax and allows you to build powerful and user-friendly command-line interfaces in Node.js.
Please start the tutorial and refer to the project website to access the documentation.
git pull ...)myapp server start ...)To use Shell.js in your project, you need to install it.
npm install shellThe package export the shell function.
import { shell } from "shell";
shell({
name: "myapp",
description: "My CLI application",
options: {
config: {
shortcut: "c",
description: "Some option",
},
},
commands: {
start: {
description: "Start something",
},
},
}).route();