detective-vue2
v2.1.0
Published
Get the dependencies of a Vue module
Downloads
1,940,720
Readme
detective-vue2
Get the dependencies of Vue module. Supports Vue2 and Vue3
npm install detective-vue2 typescript
Usage
const fs = require('fs');
const detective = require('detective-vue2');
const content = fs.readFileSync('myfile.vue', 'utf8');
// Pass in a file's content or an AST
const dependencies = detective(content);