Skip to content

Lacuna-JDCE/js-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript source code statistics tool.

This Node.js script parses a source file and provides information about the following:

  • Source size
  • Function statistics:
    • total number of functions and empty functions
    • number of function declarations and expressions
    • number of empty function declarations and expressions

Running

node ./stats.js <file> [options]

file is the JS source file the tool is run upon (mandatory). options allow you to specify more settings:

Long Short Description
--plain -p Only output numbers, without description.

The plain option will output the following numbers, separated with a space:

source-size functions function-declarations function-expressions empty-functions empty-function-declarations empty-function-expressions

About

JavaScript source code statistics tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published