api documentation generator
Install the module with: npm install lexicon
Using from the commandline
lexicon file1.js file2.js file3.js -f json > doc.json
lexicon file1.js file2.js file3.js -f markdown > doc.md
lexicon -i src -o docs -f markdown
Using the API
var lexicon = require('lexicon'),
parser = lexicon.parser,
formatter = lexicon.formatter;
console.log(formatter.format(parser.parse(code), 'markdown'));
(Coming soon)
Testing is done using buster thru grunt-buster plugin.
grunt buster
or simply grunt
which will run the code with lint.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
0.2.11 fixed missing square brackets in optional params
Copyright (c) 2012 kates
Licensed under the MIT license.