callbag-from-event

WebJar for callbag-from-event

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

callbag-from-event
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

callbag-from-event
WebJar for callbag-from-event
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/staltz/callbag-from-event

Download callbag-from-event

How to add to project

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

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.

callbag-from-event

Create a callbag listenable source from events on a DOM node or a NodeJS Event Emitter.

npm install callbag-from-event

example

Create a listenable source of click events on the <body> node.

const fromEvent = require('callbag-from-event');
const forEach = require('callbag-for-each');

const source = fromEvent(document.body, 'click');

forEach(x => console.log(x))(source); // MouseEvent ...
                                      // MouseEvent ...

Versions

Version
1.0.0