b s s m e0c8121d0c first commit | пре 3 година | |
---|---|---|
.. | ||
doc | пре 3 година | |
fixture | пре 3 година | |
.npmignore | пре 3 година | |
.travis.yml | пре 3 година | |
LICENSE | пре 3 година | |
README.md | пре 3 година | |
example.js | пре 3 година | |
help-me.js | пре 3 година | |
package.json | пре 3 година | |
test.js | пре 3 година |
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