clafm
v1.0.3
Published
Command Line Argument/Flag Framework Module
Downloads
1
Readme
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);