newcmd
v2.1.5
Published
A simple command line creater for NodeJS
Readme
newcmd
Command Line Maker
INSTALLATION
BASH
npm install newcmdCREATING COMMANDs
BASH
newcmd firstCommand file.jsCreate your command by using the syntax newcmd <command name> <file name>.js
BASH
npm init --yesNote you must init your project.
JAVASRIPT / file.js
function newcmd(args){ // You must name your command newcmd
console.log(args); // consoles all args
}In your file you will write a function named newcmd, you can add a parameter to add arguments.
LINK YOUR FILE
npm linkSYNTAX
newcmd <command name> <command file>.js: Creates a command.function newcmd(){}: The function that will be ran for this command.
