tatianamac 6d5445ecc5 update
2019-11-26 14:50:43 -08:00
..
2019-11-26 14:50:43 -08:00
2019-11-26 14:50:43 -08:00
2019-11-26 14:50:43 -08:00
2019-11-26 14:50:43 -08:00
2019-11-26 14:50:43 -08:00

detective-es6 npm npm

Get the dependencies of an ES6 module

npm install detective-es6

Usage

var detective = require('detective-es6');

var mySourceCode = fs.readFileSync('myfile.js', 'utf8');

// Pass in a file's content or an AST
var dependencies = detective(mySourceCode);

License

MIT