0.0.9 • Published 7 years ago

stat-comment v0.0.9

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

stat-comment

A little tool to extract comments based on acorn and uglify-js.

NPM version Build Status

Usage

Firstly, install stat-comment as a development dependency:

npm install stat-comment --save-dev
//input.js
stat('auto.click.stat', 'click'); //Iamcomment

function stat(a, b) {

}

stat('tap'); /*tap event*/
const Stat = require('stat-comment');
const fs = require('fs');
const code = fs.readFileSync('./input.js');
Stat.parse(code);
Stat.exportReport();

open output/report.html to see the result.

method

  • parse: parse the code to get the comments and arguments
  • parseComments: get the comments
  • exportReport: export the default report of the result
  • output: output the parsed result into file

License

MIT License

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago