consolidated-events

WebJar for consolidated-events

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

consolidated-events
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

consolidated-events
WebJar for consolidated-events
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/lencioni/consolidated-events

Download consolidated-events

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/consolidated-events/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>consolidated-events</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/consolidated-events/
implementation 'org.webjars.npm:consolidated-events:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/consolidated-events/
implementation ("org.webjars.npm:consolidated-events:2.0.2")
'org.webjars.npm:consolidated-events:jar:2.0.2'
<dependency org="org.webjars.npm" name="consolidated-events" rev="2.0.2">
  <artifact name="consolidated-events" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='consolidated-events', version='2.0.2')
)
libraryDependencies += "org.webjars.npm" % "consolidated-events" % "2.0.2"
[org.webjars.npm/consolidated-events "2.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

consolidated-events Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

Manage multiple event handlers using few event listeners.

Example

import { addEventListener } from 'consolidated-events';

const removeEventListener = addEventListener(
  window,
  'scroll',
  () => { console.log('scrolling') },
  { passive: true }
);

...

removeEventListener();

Versions

Version
2.0.2
1.1.1