npm.io
1.1.0 • Published 11 years ago

esglobals

Licence
MIT
Version
1.1.0
Deps
0
Vulns
0
Weekly
0
Stars
1

esglobals

Finds global variables in JavaScript code.

Example


var esglobals = require('esglobals');

function example() {
  x = y * z();
}

var js = example.toString();
esglobals(js);

// -> ['x', 'y', 'z']

License

MIT

Keywords