b s s m e0c8121d0c first commit 3 anos atrás
..
doc e0c8121d0c first commit 3 anos atrás
fixture e0c8121d0c first commit 3 anos atrás
.npmignore e0c8121d0c first commit 3 anos atrás
.travis.yml e0c8121d0c first commit 3 anos atrás
LICENSE e0c8121d0c first commit 3 anos atrás
README.md e0c8121d0c first commit 3 anos atrás
example.js e0c8121d0c first commit 3 anos atrás
help-me.js e0c8121d0c first commit 3 anos atrás
package.json e0c8121d0c first commit 3 anos atrás
test.js e0c8121d0c first commit 3 anos atrás

README.md

help-me

Help command for node, to use with minimist and commist.

Example

'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']

Usage with commist

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))

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT