Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 715 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 715 Bytes

detective-typescript Build Status npm npm

Get the dependencies of TypeScript module

npm install detective-typescript

Usage

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

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

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

License

MIT