sixargs

1.0.0 • Public • Published

sixargs

minimalist node command line arg parser

usage:

//test.js
const {
  n:name = 'sixargs',
  v:version = '1.0'
} = require('./sixargs')

console.log(`My name is ${name} and my version is ${version}`)
node test -n foo -v 2.0   #My name is foo and my version is 2.0
node test -n=bar -v=3.0   #My name is bar and my version is 3.0

node test                 #My name is sixargs and my version is 1.0

Package Sidebar

Install

npm i sixargs

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.49 kB

Total Files

4

Last publish

Collaborators

  • jonapgar