doxli
v1.0.7
Published
Get jsdoc / dox documentation for modules on the command line.
Downloads
11
Readme
doxli
Interactive help documentation (using dox) for Node.JS modules on the command line.
When using Node.JS modules on the command line, doxli adds a
help command to a module's exports, so you can view dox
/ jsdoc documentation for its exported functions.
Installation
npm install doxli
Usage
Running node on the command line:
> var foo = require('foo');
> var doxli = require('doxli');
> doxli(foo);Module foo's exported methods now have a help utility!
> foo.bar.help();
// => dox / jsdoc comments for this function will be printed hereUsing doxli in a module to automatically provide help functions for exports:
var doxli = require('doxli');
// module definition goes here
doxli(this);