# 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

```js
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](LICENSE)
