Socket
Socket
Sign inDemoInstall

customevent

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    customevent

CustomEvent ponyfill


Version published
Weekly downloads
3.4K
decreased by-9.6%
Maintainers
1
Install size
4.13 kB
Created
Weekly downloads
 

Readme

Source

customevent Build Status

Ponyfill for CustomEvent

Install

$ npm install --save customevent

Usage

const customEvent = require('customevent');

const event = new customEvent('click', {
	cancelable: true,
	bubbles: false,
	detail: {
		foo: 'bar'
	}
});

API

customEvent(typeArg, [customEventInit])

Creates a custom event and returns an event

typeArg

Type: string

A DOMString representing the name of the event.

customEventInit (optional)

Type: object

License

MIT © Alex Cross

Keywords

FAQs

Last updated on 14 Feb 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc