clicli
v0.1.0
Published
makes literally any node module into a CLI tool
Downloads
6
Maintainers
Readme
clicli
makes literally any node module* into a CLI tool
*ok not all node modules
install
$ npm install -g clicli
use
this:
$ cli kawaii spiders
does this:
console.log(require('kawaii')('spiders'));
how does it work?
it's like doing
console.log(require(process.argv[1]).apply(null, process.argv.slice(2)));
but it'll also npm install the module somewhere nice first
ok but where does it install stuff?
it installs to $HOME/.clicli/node_modules
using whatever npm
in in your path
license
MIT