Socket
Socket
Sign inDemoInstall

@most/dom-event

Package Overview
Dependencies
3
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @most/dom-event

Streamlined DOM Events for most.js


Version published
Maintainers
4
Install size
192 kB
Created

Readme

Source

most dom-event

Streamlined DOM events for @most/core. Now you can write:

import { click } from '@most/dom-event';
import { tap, runEffects } from "@most/core";
import { newDefaultScheduler } from "@most/scheduler";

const clickStream = click(el);

runEffects(tap(console.log, clickStream), newDefaultScheduler());

Install

npm install --save @most/dom-event

API

Events

<eventName> :: (EventTarget t, Event e) => t → boolean=false → Stream e

See the source for all the supported event names. Each has the general signature:

const stream = eventName(domNode, useCapture = false);

domEvent

domEvent :: (EventTarget t, Event e) => String → t → boolean=false → Stream e

If there's an event type that isn't supported, you can use the general domEvent API:

const stream = domEvent(eventName, domNode, useCapture = false);

Keywords

FAQs

Last updated on 27 May 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