e280bd6d4aa65ffe37430df83e4b42b2d231a9563b3df1d69f24fca086caa250a67363ee4836cd64b77fcbaf4dfb51ee13b83073ff934f8739eed90562e166 917 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. help-me
  2. =======
  3. Help command for node, to use with [minimist](http://npm.im/minimist) and [commist](http://npm.im/commist).
  4. Example
  5. -------
  6. ```js
  7. 'use strict'
  8. var helpMe = require('help-me')
  9. var path = require('path')
  10. var help = helpMe({
  11. dir: path.join(__dirname, 'doc'),
  12. // the default
  13. ext: '.txt'
  14. })
  15. help
  16. .createStream(['hello']) // can support also strings
  17. .pipe(process.stdout)
  18. // little helper to do the same
  19. help.toStdout(['hello']
  20. ```
  21. Usage with commist
  22. ------------------
  23. [Commist](http://npm.im/commist) provide a command system for node.
  24. ```js
  25. var commist = require('commist')()
  26. var path = require('path')
  27. var help = require('help-me')({
  28. dir: path.join(__dirname, 'doc')
  29. })
  30. commist.register('help', help.toStdout)
  31. commist.parse(process.argv.splice(2))
  32. ```
  33. Acknowledgements
  34. ----------------
  35. This project was kindly sponsored by [nearForm](http://nearform.com).
  36. License
  37. -------
  38. MIT