JavaScript documentation generator
Run jox via its Node.js-API. Example:
#!/usr/bin/env node
var jox = require('jox');
jox.run(['src/file.js'], 'doc/index.html', 'template.ejs');
Filters comments. Only comments with at least one tag matching the filter will be returned.
var functionComments = getCommentsByTag(comments,{ type: "function" });
Note that this function only is available in the templating engine.
Filters tags and returns the filtered array. Only tags matching the filter will be included in the result.
Example:
var paramTags = filterTags(comments[0].tags,{ type : "param" });
Note that this function only is available in the templating engine.