]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blob - example/iot-gateway/node_modules/aws-iot-device-sdk/node_modules/mqtt/node_modules/help-me/README.md
Updated to use the latest TI 15.4-Stack v2.1.0 from the SimpleLink CC13x0 SDK v1.30.
[apps/tidep0084.git] / example / iot-gateway / node_modules / aws-iot-device-sdk / node_modules / mqtt / node_modules / help-me / README.md
1 help-me
2 =======
4 Help command for node, to use with [minimist](http://npm.im/minimist) and [commist](http://npm.im/commist).
6 Example
7 -------
9 ```js
10 var helpMe = require('help-me')
12   , help   =helpMe({
13     // the default
14     dir: path.join(path.dirname(require.main.filename), 'doc')
15     // the default
16   , ext: '.txt'
17 })
19 help
20   .createStream(['hello']) // can support also strings
21   .pipe(process.stdout)
23 // little helper to do the same
24 help.helpToStdout(['hello']
25 ```
27 Usage with commist
28 ------------------
30 [Commist](http://npm.im/commist) provide a command system for node.
32 ```js
33 var commist = require('commist')()
34   , help    = require('./')()
36 commist.register('help', help.toStdout)
38 commist.parse(process.argv.splice(2))
39 ```
41 Acknowledgements
42 ----------------
44 This project was kindly sponsored by [nearForm](http://nearform.com).
46 License
47 -------
49 MIT