New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@most/dom-event

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@most/dom-event

Streamlined DOM Events for most.js

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
decreased by-9.78%
Maintainers
4
Weekly downloads
 
Created
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

Package last updated on 27 May 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc