mine
Digs into a javascript file looking for require calls. Used to statically extract common js dependencies.
Last updated 12 years ago by creationix .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mine 
SYNC missed versions from official npm registry.

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);

Current Tags

  • 0.1.0                                ...           latest (12 years ago)

4 Versions

  • 0.1.0                                ...           12 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
  • 0.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |