Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

v-honk

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-honk

#TheHonkening arrives to Vue

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
3
-50%
Maintainers
1
Weekly downloads
 
Created
Source

🦆 V-Honk

Introducing a little chaos to Vue.js.

v-honk is a custom directive for Vue that adds a delightful little "honk" to anything.

Installation

  npm install v-honk

Using it in a component

  <template>
    <div>
      <a href="https://honkify.netlify.com" v-honk>This will go to Honkify.js.</a>
      <a href="https://honkify.netlify.com" v-honk:block>This won't let you through.</a>
      <p v-honk>This won't go anywhere.</p>
    </div>
  </template>

  <script>
  import honk from "v-honk";

  export default {
    directives: {
      honk
    }
  };
  </script>

If the target is an anchor tag, v-honk simply honks and lets the user through after a timeout. However, as geese do, sometimes they want to block your path. Adding an argument of block will stop a link from working while still honking at them.

💚 Inspired by the anarchy of Honkify.js and Jason Lengstof.

Plans for v-honk:

  • [] Create a global property
  • [] Make sure target is an actual link
  • [] World dominiation

FAQs

Package last updated on 04 Oct 2019

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