docs-gen
v1.0.2
Published
Extract inline comments from source files and show them inside a web page.
Downloads
34
Readme
docs-gen
node script that shows all the comments inside a source file as a list of cards. Generates a *.html file.
Let's say you have a index.js file and you want to extract all the comments inside them and show them in a visually appealing way. You can use this module like that:
node DIRECTORY/TO/MODULE/index.js sourceFile fileName encoding
Where the parameters mean the following:
sourceFile = The path to the file you want to extract comments from.
fileName = The name the html file that's being generated should have.
encoding = If your file has a fancy url encoding, pass it here.