stat-comment
A little tool to extract comments based on acorn and uglify-js.
Usage
Firstly, install stat-comment
as a development dependency:
npm install stat-comment --save-dev
//input.js; //Iamcomment { } ; /*tap event*/
const Stat = ;const fs = ;const code = fs;Stat;Stat;
open output/report.html
to see the result.
method
parse
: parse the code to get the comments and argumentsparseComments
: get the commentsexportReport
: export the default report of the resultoutput
: output the parsed result into file