Tiny argv impl.
npm install @jswork/argv
import argv from '@jswork/argv';
// node index.js --name=afei --age=18 file1 file2
const { args, opts } = argv();
console.log(args); // [ 'file1', 'file2' ]
console.log(opts); // { name: 'afei', age: '18' }
Code released under the MIT license.