1.0.3 • Published 6 years ago

clafm v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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);
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago