Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Miner digs into a javascript file looking for require calls. Used to statically extract common js dependencies.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

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