clicli

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i clicli

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • btford