npm.io
0.1.0 • Published 12 years ago

mine

Licence
MIT
Version
0.1.0
Deps
0
Vulns
0
Weekly
0
Stars
17

mine.js

The mine script accepts js source and returns all the require call locations as well as the target string. This is a submodule of js-linker and my-filters.

var mine = require('js-linker/mine.js');
var fs = require('fs');
var code = fs.readFileSync("test.js");
var deps = mine(code);