Check your Javascripts for accidental globals and unused variables.
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
TODO
cli.js
index.js
package.json
tests.js

README.md

Checkvars

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

Install

Install via npm install checkvars

CLI Usage

checkvars myscript.js

API

var checkVars = require('checkvars')

var results = checkVars(sourceCode)

console.log(results.newGlobals) // accidental globals introduced