<commit_before># most dom-event

Streamlined DOM events for [most](https://github.com/cujojs/most).  Now you can write:

```js
import { click } from '@most/dom-event';

const clickStream = click(el);

clickStream.observe(event => console.log(event));
```

## Install

`npm install --save @most/dom-event`

## API

### Events

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

See [the source](src/dom-event.js) for all the supported event names.  Each has the general signature:

```js
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:

```js
const stream = domEvent(eventName, domNode, useCapture = false);
```
<commit_msg>Use pretty arrows<commit_after># most dom-event

Streamlined DOM events for [most](https://github.com/cujojs/most).  Now you can write:

```js
import { click } from '@most/dom-event';

const clickStream = click(el);

clickStream.observe(event => console.log(event));
```

## Install

`npm install --save @most/dom-event`

## API

### Events

#### &lt;eventName&gt; :: (EventTarget t, Event e) => t &rarr; boolean=false &rarr; Stream e

See [the source](src/dom-event.js) for all the supported event names.  Each has the general signature:

```js
const stream = eventName(domNode, useCapture = false)
```

### domEvent

#### domEvent :: (EventTarget t, Event e) => String &rarr; t &rarr; boolean=false &rarr; Stream e

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

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

{'fraction_non_alphanumeric': 0.1564310544611819, 'fraction_numerical': 0.0, 'mean_word_length': 4.535256410256411, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '36905', 'n_tokens_mistral': 575, 'n_tokens_neox': 555, 'n_words': 189}