Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Check your Javascripts for accidental globals and unused variables.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.