Skip to content
/ JSMExtr Public

JSMExtr - JavaScript source code Metrics Extractor

License

Notifications You must be signed in to change notification settings

fervet/JSMExtr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSMExtr - JavaScript source code Metrics Extractor

A tool that parses HTML or JavaScript files and inspects all JavaScript code found. Outputs several metrics for the analyzed source.

Scripts

Running it on your own

Requirements

All code is written in JavaScript and runs on the NodeJS platform.

Running

Download and process all dependencies:

npm install

Try the sample script:

npm start

The sample script takes metrics from some files located at the test/demo folder. You can (and should) change that to any path containing HTML and/or JS files. Take a look at the script to learn how to do that. It should be straightforward.

Tests

The test scripts is a very good source on the specific behavior of each function. To run it, use:

npm test

The test framework used is Mocha, mainly due to its capacity to test server-side code seamlessly.

Other

This repo follows the angular commit message style.

About

JSMExtr - JavaScript source code Metrics Extractor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published