# vue-press-directive

> vue long press directive

Latest version **1.0.1** (published 2018-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-press-directive
pnpm add vue-press-directive
yarn add vue-press-directive
bun add vue-press-directive
```

## 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.1 |
| Published | 2018-11-02 |
| First published | 2018-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 123.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zheng_refn |
| Maintainers | zheng_refn |

## Links

- npm: https://www.npmjs.com/package/vue-press-directive
- Repository: https://github.com/ZhaZhengRefn/vue-press-directive
- Homepage: https://github.com/ZhaZhengRefn/vue-press-directive#readme
- Issues: https://github.com/ZhaZhengRefn/vue-press-directive/issues
- npm.io page: https://npm.io/package/vue-press-directive

## Recent versions

- 1.0.1 (latest) — 2018-11-02
- 1.0.0 — 2018-11-02

## README

# v-press

# Install
```sh
yarn global add vue-press-directive
```

# Usage 
```js
// main.js
import VuePressDirective from 'vue-press-directive'
import Vue from 'vue'

// long-press interval has an default value that is 600ms. But you still can override this with options.interval.
Vue.use(VuePressDirective, { interval: 600 })

new Vue({
  // Also you can override interval in the directive. Passing arguments in directive like this.
  template: `
    <article>
      <button v-press="handler">Long press this button.</button>
      <button v-press:100="handler">Long press this button with only 100ms.</button>
    </article>
  `,
})
```
see more in `/example/index.html`

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