hiri

cli help lib

Usage no npm install needed!

<script type="module">
  import hiri from 'https://cdn.skypack.dev/hiri';
</script>

README

hiri npm downloadsBuild Status Coveralls branch

install

npm install hiri

usage

//index.js

var {hiri} = require('hiri')

function message(){
    let input = this.input
    let flags = this.flags
    return console.log(`You input ${input} with flags ${JSON.stringify(flags)}`)
}

const cli = new hiri({
    'm,message': message
})

$ node index.js -m lalala hello
//You input hello with flags {"m":"lalala"}

inspiration of cac/egoist

license

MIT. Copyright (c) viii.