clafm

1.0.3 • Public • Published

CLAFM

Command Line Argument Framework Module

initializing the module

const clafm = require("clafm");
clafm.init(process.argv, 2);

adding flags to the module

// example: clafm.add("test", 't');
clafm.add("name", "alias");

remove flags from the module

// example: clafm.remove("test");
clafm.remove("name");

getting values from cli flags

// example: clafm.get("test");
// this will get both --test and -t
var value = clafm.get("name");
console.log(value);

Package Sidebar

Install

npm i clafm

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

2.03 kB

Total Files

3

Last publish

Collaborators

  • pyxelx