# extract-event-tracking

> 提取 vue-event-tracking 埋点内容

Latest version **1.1.1** (published 2022-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install extract-event-tracking
pnpm add extract-event-tracking
yarn add extract-event-tracking
bun add extract-event-tracking
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-03-30 |
| First published | 2022-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 38.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | onsong |
| Maintainers | onsong |
| Keywords | extract, pv, vue, plugin, event-tracking |

## Links

- npm: https://www.npmjs.com/package/extract-event-tracking
- Repository: git@gitee.com:lotuslee/extract-event-tracking
- npm.io page: https://npm.io/package/extract-event-tracking

## Dependencies (7)

- [colors](https://npm.io/package/colors.md) ^1.4.0
- [pkg-dir](https://npm.io/package/pkg-dir.md) 5.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.0.1
- [node-dir](https://npm.io/package/node-dir.md) ^0.1.17
- [join-path](https://npm.io/package/join-path.md) ^1.1.1
- [path-parse](https://npm.io/package/path-parse.md) ^1.0.7
- [path-exists](https://npm.io/package/path-exists.md) 4.0.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-03-30
- 1.1.0 — 2022-03-17
- 1.0.7 — 2022-03-16
- 1.0.6 — 2022-03-16
- 1.0.5 — 2022-03-16
- 1.0.4 — 2022-03-16
- 1.0.3 — 2022-03-16
- 1.0.2 — 2022-03-15
- 1.0.1 — 2022-03-15
- 1.0.0 — 2022-03-15

## README

# extract-event-tracking

## 提取 vue-event-tracking 埋点内容

### 安装依赖

```bash
$ cd <project-name>
$ yarn add extract-event-tracking -D
```

### 使用

1. create test.js

```javascript
// src/test.js
const {ExtractEventTracking} = require('extract-event-tracking');
const path = require('path');

new ExtractEventTracking({
  entryPath: path.resolve(__dirname, '../src/main.js'), // 入口路径 - [必传项]
  entryDir: path.resolve(__dirname, '../src'), // 筛选文件夹 - [必传项]
  outputPath: path.resolve(__dirname, '../_dot'), // 输出文件夹 - [必传项]

  alias: {
    '@': path.resolve(__dirname, '../src') // 别名 - 如果存在需要填写
  },
  outputFilename: '_dot.txt', // 出口文件名 - 默认
  directiveNames: ['v-dot', 'v-dotSync'], // 需要筛选的指令集 - 默认
  functionNames: ['$dot', '$dotSync'] // 需要筛选的方法集 - 默认
});
```

2. package.json

```json
{
  "scripts": {
    "test": "node src/test.js"
  }
}
```

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