# zepto-interceptor

> Zepto事件拦截器插件

Latest version **1.0.0** (published 2019-04-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install zepto-interceptor
pnpm add zepto-interceptor
yarn add zepto-interceptor
bun add zepto-interceptor
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-04-11 |
| First published | 2019-04-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | yangyang |
| Maintainers | yangyang_npm |
| Keywords | Zepto |

## Links

- npm: https://www.npmjs.com/package/zepto-interceptor
- Repository: https://github.com/yy19901021/zetop-event-interceptor
- Homepage: https://github.com/yy19901021/zetop-event-interceptor#readme
- Issues: https://github.com/yy19901021/zetop-event-interceptor/issues
- npm.io page: https://npm.io/package/zepto-interceptor

## Recent versions

- 1.0.0 (latest) — 2019-04-11

## README

## Zepto事件拦截器插件
主要作用是zetop.on添加的事件函数执行之前，对其进行拦截。
### 用法
```
  .......引入js.......
  
  $(selector).interceptor(headler, event).on() // 添加拦截器
  $(selector).interceptorCancel(events) // 取消拦截器
```
### 参数说明
#### 添加拦截器
- headler：拦截器执行函数，在on里面定义的函数之前执行，如果返回的是true 则on定义的事件函数继续执行，否则不执行.(如果headler不传，则不会进行拦截)
- event: 需要拦截的事件 可以是（字符串， 数组，和 undefined）undefined时默认拦截所有事件
#### 取消拦截器
- event: 取消事件拦截 可以是（字符串， 数组，和 undefined）undefined时清除所有拦截

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