open-index/open-npm huggingface dataset:
npm package: @readable/closest
Description: Element.prototype.closest polyfill
Author: Oleg
Latest version: 0.0.2

# Closest Polyfill

![IE-9+](https://img.shields.io/badge/IE-9%2B-green.svg)
![Firefox-34+](https://img.shields.io/badge/Firefox-34%2B-green.svg)
![chrome-34+](https://img.shields.io/badge/Chrome-34%2B-green.svg)
![Safari-8+](https://img.shields.io/badge/Safari-8%2B-green.svg)
![Opera-21+](https://img.shields.io/badge/Opera-21%2B-green.svg)

Simpler and faster  [`Element.closest`](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest) polyfill that relies on [`Element.matches`](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches) instead of falling back to [`document.querySelectorAll`](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll) (like [suggested on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill)) or some other selector match implementation.

The tradeoff is no support for ancient browsers.

## Install
``` sh
npm install --save @readable/closest
```

``` html
<script src="node_modules/@readable/closest/closest.js"></script>
```
npm package: @readable/delegate
Description: Simple and readable vanilla js event delegation
Author: Oleg
Latest version: 0.0.5

# Delegate

![IE-9+](https://img.shields.io/badge/IE-9%2B-green.svg)
![Firefox-34+](https://img.shields.io/badge/Firefox-34%2B-green.svg)
![chrome-34+](https://img.shields.io/badge/Chrome-34%2B-green.svg)
![Safari-8+](https://img.shields.io/badge/Safari-8%2B-green.svg)
![Opera-21+](https://img.shields.io/badge/Opera-21%2B-green.svg)

[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-green.svg)](https://standardjs.com)

Simple and fast **vanilla js** event delegation. Uses [`Element.closest`](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest) and falls back on [@readable/closest](https://www.npmjs.com/package/@readable/closest) fast polyfill. In case better browser support is needed, use slower and more primitive `Element.closest` polyfill.

`Element.closest` polyfill is required **only** for **IE**, other reasonably up to date browsers are fine without it.

## Install

``` sh
npm install --save @readable/delegate
```

``` html
<script src="node_modules/@readable/closest/closest.js"></script>
<script src="node_modules/@readable/delegate/delegate.js"></script>
```
## Example

```js
Rd.delegateEvent(document, 'click', '#counter', function (event) {
  this.innerText += 1
})
```

``` html
<button id="counter">0</button>
```
npm package: @readable/lock
Description: Create a function that can only be executed sequentially
Author: Oleg
Latest version: 0.0.1
Deprecated: deleted

[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

# Lock

Tool to create a trailing edge throttle out of any deferring function.

Places a lock on a function preventing its simultaneous execution.
While another execution is due, all other requests to run will be ignored.

``` js
var throttle = Rd.lock(function (callback) {
  setTimeout(callback, 16)
})

window.addEventListener('resize', function () {
  throttle(function () {
    // Update DOM no more than every 16ms (~ 60fps)
  })
})

```

``` js
var throttledRAF = Rd.lock(requestAnimationFrame)

window.addEventListener('resize', function () {
  throttledRAF(function () {
    // Update DOM before repaint
  })
})
```
npm package: @readalongs/ngx-web-component
Description: The ngx-web-component is an Angular library wrapper around our [@readalongs/web-component](web-component) turning it into a component for use in Angular apps.
Latest version: 1.6.3

# ngx-web-component

The ngx-web-component is an Angular library wrapper around our [@readalongs/web-component](web-component) turning it into a component for use in Angular apps.

This library was generated with [Nx](https://nx.dev).