1.0.3 • Published 1 year ago
@jswork/argv v1.0.3
argv
Tiny argv impl.
installation
npm install @jswork/argv
usage
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' }
license
Code released under the MIT license.