Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianaya89/vue-esc
:running: Vue.js directive to add a document event listener on escape keyup.
https://github.com/ianaya89/vue-esc
escape-keyup vue-directive vue-esc vuejs
Last synced: 26 days ago
JSON representation
:running: Vue.js directive to add a document event listener on escape keyup.
- Host: GitHub
- URL: https://github.com/ianaya89/vue-esc
- Owner: ianaya89
- License: mit
- Created: 2016-10-21T21:38:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T09:14:30.000Z (about 1 year ago)
- Last Synced: 2024-03-30T13:20:22.653Z (about 2 months ago)
- Topics: escape-keyup, vue-directive, vue-esc, vuejs
- Language: JavaScript
- Size: 1.66 MB
- Stars: 36
- Watchers: 4
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (UI Utilities / Event Handling)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (UI Utilities / Event Handling)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (UI Utilities / Event Handling)
- awesome-vue. - vue-esc - Vue.js directive to add a document event listener on escape keyup. (UI Utilities / Event Handling)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (UI Utilities / Event Handling)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (UI Utilities / Event Handling)
- awesome-vue - vue-esc - Vue.js directive to add a document event listener on escape keyup. (Components & Libraries / UI Utilities)
- awesome-vue - vue-esc ★28 - Vue.js directive to add a document event listener on escape keyup. (UI Utilities / Event Handling)
README
# vue-esc
> :running: Vue.js directive to add a document event listener on escape keyup.[ ![Codeship Status for ianaya89/vue-esc](https://app.codeship.com/projects/3738d4b0-082d-0135-8a91-66ea66f8c9cb/status?branch=master)](https://app.codeship.com/projects/214292)
[![Coverage Status](https://coveralls.io/repos/github/ianaya89/vue-esc/badge.svg?branch=master)](https://coveralls.io/github/ianaya89/vue-esc?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a34ce7d9829c4124823cba10d24ad941)](https://www.codacy.com/app/FindEarth/vue-esc?utm_source=github.com&utm_medium=referral&utm_content=ianaya89/vue-esc&utm_campaign=Badge_Grade)### Support
- Vue.js 2 => `vue-esc@>=2.0.0` [master]
- Vue.js 1 => `[email protected]`### Install
```bash
$ npm i -S vue-esc
```
```
$ yarn add vue-esc
```### Use
```javascript
// main.jsimport Vue from 'vue';
import VueEsc from 'vue-esc';Vue.use(VueEsc);
``````html
// Component.vue
export default {
name: 'Component',methods: {
escape(event) {
console.log('Esc key pressed.', `Event: ${event}`);
}
}
};
```
### Development
```bash
# install dependencies
$ npm install# dev mode
$ npm run dev# test
$ npm run test# build
$ npm run build
```## License
[MIT License](https://github.com/ianya89/vue-esc/blob/master/LICENSE)## Style
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](http://standardjs.com)___
**This project was built with [yeoman](http://yeoman.io/) and [generator-vue-component](https://github.com/ianaya89/generator-vue-component) ❤️**