0.1.0 • Published 11 years ago
polydox v0.1.0
polydox
Pipe multiple files into dox at once.
Why
The original dox CLI tool reads a single source from stdin:
$ dox < utils.js
...JSON...This simple idea gets complicated in a multi-file project. Here are your options:
- Concat files before piping them to
dox:
$ cat source/*.js | dox
...LINE NUMBERS LOST...- Concat
doxoutput:
$ for file in source/*.js; do dox $file; done
...NOT VALID JSON...- Wild hacks.
But worry no more! Now you have polydox:
$ polydox source/*.js
[
{
// …usual dox output PLUS:
"sourceFile": "source/a.js"
},
{
// …usual dox output PLUS:
"sourceFile": "source/b.js"
},
]Installation
$ npm install --global polydoxUsage
SYNOPSIS
Usage: polydox [options] <file>...OPTIONS
-h --help Print a short synopsis (-h) or this usage info (--help)
-r --raw Don’t preprocess stuff with markdownEXAMPLES
$ polydox a.js
$ polydox a.js b.js c.js > dox-output.json
$ polydox source/*.js | doxie --render --inject into Readme.mdLicense
0.1.0
11 years ago
0.0.0-work-in-progress
11 years ago