@augu/larg
v0.0.2
Published
👾 A very lightweight Node.js argument parser
Downloads
3
Readme
larg
Forked from PassTheWessel/larg
Modifications
+ Use classes (bc classes are cool)
Usage
// using larg#create
const larg = require('@augu/larg');
const args = larg.create(); // => larg.ArgumentParser
console.log(args.parse());
// using larg.ArgumentParser class
const { ArgumentParser } = require('@augu/larg');
const larg = new ArgumentParser();
console.log(larg.parse());
// returns:
{
'<node path>': '<executed path>',
yes: true,
nan: false,
_: []
}