Skip to content

michaelrhodes/zcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

zcc

a zero-config cli core

install

$ npm install michaelrhodes/zcc#2.1.1

use

chmod u+x bin.js
./bin.js hello world
> hello, world
// bin.js
#!/usr/bin/env node
require('zcc')()

// hello.js
module.exports = function (name) {
  console.log('hello, ' + name)
}

byo argument parser

chmod u+x bin.js
./bin.js hello --name world
> hello, world
// bin.js
#!/usr/bin/env node
require('zcc')(require('mri'))

// hello.js
module.exports = function (args) {
  console.log('hello, ' + args.name)
}

obey

MIT

About

a zero-config cli core

Resources

Stars

Watchers

Forks