![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | doc/ | 2 years ago | - | |
![]() | fixture/ | 2 years ago | - | |
![]() | LICENSE | 40 years ago | 1.1K | |
![]() | README.md | 40 years ago | 917 | |
![]() | example.js | 40 years ago | 160 | |
![]() | help-me.js | 40 years ago | 2.2K | |
![]() | package.json | 2 years ago | 1.6K | |
![]() | test.js | 40 years ago | 5.1K |
Help command for node, to use with minimist and commist.
'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']
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))
This project was kindly sponsored by nearForm.
MIT