0.1.0 • Published 10 years ago

clicli v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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