🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

fancy-ev

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fancy-ev

Helps to set events on a HTML element

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Syntax of Using

    import { setEvent } from 'fancy-ev';
    const button = document.querySelector('button');
    const listener = () => alert('Clicked on the button')

    setEvent(element: button, type: 'click', listener: listener); // Or any event type you want

Keywords

javascript

FAQs

Package last updated on 13 Apr 2024

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