Skip to content

dependents/detective-vue2

Repository files navigation

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