dependents / detective-vue2

MIT License
0 stars 3 forks source link
detective vue vue2 vue3 vuejs

detective-vue2

CI npm version npm downloads

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

License

MIT