CLI arguments micro parser. Only 25 lines of code, no dependencies.
#!/usr/bin/env node const args = require('microargs')(process.argv.slice(1)); console.dir(args);
$ script.js -a --foo=bar --boo abc def { params: ['abc', 'def'], options: { a: true, foo: 'bar', boo: true } }