New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vueclaw

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vueclaw

A wrapper for Claw.

1.1.0
latest
Source
npm
Version published
Weekly downloads
63
-11.27%
Maintainers
1
Weekly downloads
 
Created
Source

VueClaw

A wrapper for Claw.

demo

Try it out!

dependencies

  • Claw

setup

npm

npm install vueclaw

ES module

Register the directive globally.

import Vue from 'vue';
import VueClaw from 'vueclaw';

Vue.directive(VueClaw.name, VueClaw);

or

Register the directive in the scope of a component.

import VueClaw from 'vueclaw';

export default {
  directives: {
    [VueClaw.name]: VueClaw,
  },
  /*...*/
};

browser

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/@seregpie/claw"></script>
<script src="https://unpkg.com/vueclaw"></script>

If Vue is detected, the directive will be registered automatically.

usage

<template>
  <div
    v-claw:pan="onPan"
    v-claw:tap="onTap"
  ><!--...--></div>
</template>
<script>
export default {
  methods: {
    onPan(event) {
      // handle pan
    },
    onTap(event) {
      // handle tap
    },
  },
  /*...*/
};
</script>

Keywords

claw

FAQs

Package last updated on 18 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts