npm.io
2.1.5 • Published 7 years agoCLI

newcmd

Licence
ISC
Version
2.1.5
Deps
0
Size
3 kB
Vulns
0
Weekly
0

newcmd

Command Line Maker

INSTALLATION

BASH

npm install newcmd

CREATING COMMANDs

BASH

newcmd firstCommand file.js

Create your command by using the syntax newcmd <command name> <file name>.js

BASH

npm init --yes

Note 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 link

SYNTAX

newcmd <command name> <command file>.js: Creates a command.
function newcmd(){}: The function that will be ran for this command.

CAN YOU HELP ME?

If you can help me, please help here.

Keywords