larg
A lightweight Node.js argument parser which can be used in various ways.
Installing
$ yarn add larg # Install w/ Yarn (the superior package manager) $ npm i larg # Install w/ NPM
Usage
Code
const argv = processargv ;console;
Result
$ node test.js -x 3 -y 4 -ab --beep=boop foo bar
Why should I use larg?
Larg is very lightweight (3.45kb total, 569b minified in dist/larg.min.js) comparing to other packages such as optimist and minimist.