b s s m e0c8121d0c first commit | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
doc | %!s(int64=3) %!d(string=hai) anos | |
fixture | %!s(int64=3) %!d(string=hai) anos | |
.npmignore | %!s(int64=3) %!d(string=hai) anos | |
.travis.yml | %!s(int64=3) %!d(string=hai) anos | |
LICENSE | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
example.js | %!s(int64=3) %!d(string=hai) anos | |
help-me.js | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos | |
test.js | %!s(int64=3) %!d(string=hai) anos |
Help command for node, to use with minimist and commist.
'use strict'
var helpMe = require('help-me')
var help = helpMe({
// the default
dir: path.join(path.dirname(require.main.filename), 'doc'),
// the default
ext: '.txt'
})
help
.createStream(['hello']) // can support also strings
.pipe(process.stdout)
// little helper to do the same
help.toStdout(['hello']
Commist provide a command system for node.
var commist = require('commist')()
var help = require('help-me')()
commist.register('help', help.toStdout)
commist.parse(process.argv.splice(2))
This project was kindly sponsored by nearForm.
MIT