detective-vue2

Get the dependencies of a Vue module
134,393,702 1
Install
npm install detective-vue2
Latest Version:3.0.1
License:MIT
Last Updated:Sep 7, 2026
Links: GitHub  ·  npm
Maintainer: xhmikosr

detective-vue2

CI npm version npm downloads

Get the dependencies of Vue module. Supports Vue2 and Vue3

npm install detective-vue2 typescript

Usage

ESM

import fs from 'node:fs';
import detective from 'detective-vue2';

const content = fs.readFileSync('myfile.vue', 'utf8');

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

CommonJS

const { default: detective } = require('detective-vue2');

License

MIT

Related Packages

precinct

Unleash the detectives

195,237,144 234
nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511
slue-module

A tool of analyse modules relationship.

7,676
@lg2/nuxt3-module-create-dato-map

nuxt3-module-create-dato-map

2,869 0

Version History

Version Released License
3.0.1 MIT
3.0.0 MIT
2.3.0 MIT
2.2.0 MIT
2.1.2 MIT