clipman
v1.10.3
Published
Helper to write and run nodejs apps from the terminal
Downloads
251
Readme
clipman
Helper to write and run nodejs apps from the terminal.
Install
npm install --global clipmanQuick start
clipman init hello-worldThis creates a new clipman app
You can now run your new clipman app
clipman run hello-worldHello world!You can also see the help section:
clipman help hello-worldhello-world v1.0.0 | Issue greetings
* Usage
hello-world <options>
* Options
--name string Who to greet (optional, default: "world")
made with clipmanLet's try to pass it an option
clipman run hello-world --name javascriptHello javascript!Let's change our hello-world/clipman.json:
{
"name": "hello-world",
"version": "1.0.0",
"description": "Issue greetings",
"entry": "main.js",
"options": {
"name": {
"description": "Who to greet",
"default": {
"value": "world"
}
}
}
}Change world by node, save the file and then:
clipman run hello-worldHello node!