checkvars

Check your Javascripts for accidental globals and unused variables.

npm install checkvars
14 downloads in the last week
29 downloads in the last month

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
npm loves you