# detective-vue2

> Get the dependencies of a Vue module

Latest version **3.0.1** (published 2026-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install detective-vue2
pnpm add detective-vue2
yarn add detective-vue2
bun add detective-vue2
```

## Health

**Score 55/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2026-06-06 |
| First published | 2023-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.19.0 \|\| >=22.12.0 |
| Dependencies | 7 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Havunen |
| Maintainers | xhmikosr, havunen |
| Keywords | detective, dependencies, module, ast, import, vue |

## Links

- npm: https://www.npmjs.com/package/detective-vue2
- Repository: https://github.com/dependents/detective-vue2
- Issues: https://github.com/dependents/detective-vue2/issues
- npm.io page: https://npm.io/package/detective-vue2

## Dependencies (7)

- [detective-es6](https://npm.io/package/detective-es6.md) ^6.0.0
- [detective-sass](https://npm.io/package/detective-sass.md) ^7.0.1
- [detective-scss](https://npm.io/package/detective-scss.md) ^6.0.1
- [detective-stylus](https://npm.io/package/detective-stylus.md) ^6.0.0
- [@vue/compiler-sfc](https://npm.io/package/@vue/compiler-sfc.md) ^3.5.35
- [detective-typescript](https://npm.io/package/detective-typescript.md) ^15.0.0
- [@dependents/detective-less](https://npm.io/package/@dependents/detective-less.md) ^6.0.1

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2026-06-06
- 3.0.0 — 2026-05-19
- 2.3.0 — 2026-04-18
- 2.2.0 — 2025-02-06
- 2.1.2 — 2025-02-01
- 2.1.1 — 2025-01-21
- 2.1.0 — 2024-10-19
- 2.0.3 — 2024-05-30
- 2.0.2 — 2024-05-22
- 2.0.1 — 2024-04-15
- 2.0.0 — 2024-04-14
- 1.0.2 — 2024-04-14
- 1.0.1 — 2023-08-29
- 1.0.0 — 2023-02-18

## README

# detective-vue2

[![CI](https://img.shields.io/github/actions/workflow/status/dependents/detective-vue2/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/detective-vue2/actions/workflows/ci.yml?query=branch%3Amain)
[![npm version](https://img.shields.io/npm/v/detective-vue2?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-vue2)
[![npm downloads](https://img.shields.io/npm/dm/detective-vue2)](https://www.npmjs.com/package/detective-vue2)

> Get the dependencies of Vue module. Supports Vue2 and Vue3

```sh
npm install detective-vue2 typescript
```

## Usage

### ESM

```js
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

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

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/detective-vue2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
