node-cli-utils

0.1.3 • Public • Published

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!")

Package Sidebar

Install

npm i node-cli-utils

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

3.42 kB

Total Files

5

Last publish

Collaborators

  • dninja21