/ never-odd-or-even / back / node_modules / help-me /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]doc/2 years ago -  
[DIR]fixture/2 years ago -  
[   ]LICENSE40 years ago1.1K 
[TXT]README.md40 years ago917  
[   ]example.js40 years ago160  
[   ]help-me.js40 years ago2.2K 
[   ]package.json2 years ago1.6K 
[   ]test.js40 years ago5.1K 
README.md

help-me

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

Example

'use strict'

var helpMe = require('help-me')
var path = require('path')
var help = helpMe({
  dir: path.join(__dirname, '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 path = require('path')
var help = require('help-me')({
  dir: path.join(__dirname, 'doc')
})

commist.register('help', help.toStdout)

commist.parse(process.argv.splice(2))

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80