checkvars

Check your Javascripts for accidental globals and unused variables.

Checkvars

Checkvars is a simple static analysis tool to check your Javascripts for accidental globals and unused variables.

Install via npm install checkvars

checkvars myscript.js
var checkVars = require('checkvars')
 
var results = checkVars(sourceCode)
 
console.log(results.newGlobals) // accidental globals introduced