0.1.3 • Published 6 years ago

node-cli-utils v0.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

node-cli-utils

node-cli-utils is a simple node.js package with the tools needed to build your own node.js command line interface. It combines many node.js features to deliver many abilities. WIth node-cli-utils, you can: get process arguments from their id.

Installation

Via npm : npm i node-cli-utils --save Via git : git clone https://github.com/dninja21/node-cli-utils

Example

const ncli = require("node-cli-utils");
console.log(ncli.getArgSync("-c"));

When run like this:

$ node test.js -c "hello"
hello

Console colors

This package also ships with the console colors.

Example

const ncli = require("node-cli-utils");
console.log(ncli.consoleColors.FgRed, "Colors work!")