# @zcorky/throttle

> Throttle a function

Latest version **1.0.0** (published 2018-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @zcorky/throttle
pnpm add @zcorky/throttle
yarn add @zcorky/throttle
bun add @zcorky/throttle
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-09-27 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zero |
| Maintainers | uniquecolesmith |

## Links

- npm: https://www.npmjs.com/package/@zcorky/throttle
- Repository: https://github.com/zcorky/throttle
- Homepage: https://github.com/zcorky/throttle#readme
- Issues: https://github.com/zcorky/throttle/issues
- npm.io page: https://npm.io/package/@zcorky/throttle

## Recent versions

- 1.0.0 (latest) — 2018-09-27

## README

# throttle

[![NPM version](https://img.shields.io/npm/v/@zcorky/throttle.svg?style=flat)](https://www.npmjs.com/package/@zcorky/throttle)
[![Coverage Status](https://img.shields.io/coveralls/zcorky/throttle.svg?style=flat)](https://coveralls.io/r/zcorky/throttle)
[![Dependencies](https://david-dm.org/@zcorky/throttle/status.svg)](https://david-dm.org/@zcorky/throttle)
[![Build Status](https://travis-ci.com/zcorky/throttle.svg?branch=master)](https://travis-ci.com/zcorky/throttle)
![license](https://img.shields.io/github/license/zcorky/throttle.svg)
[![issues](https://img.shields.io/github/issues/zcorky/throttle.svg)](https://github.com/zcorky/throttle/issues)

> Throttle a function.

### Install

```
$ npm install @zcorky/throttle
```

### Usage

```javascript
// import
import throttle from '@zcorky/throttle';

// throttle
function resize(e) {
  console.log('width', window.innerWidth);
  console.log('height', window.innerHeight);
}

window.onresize = throttle(resize, 200);
```

### Relatived
* [throttle](https://github.com/component/throttle)
* [blog: throttle](https://github.com/mqyqingfeng/Blog/issues/26)

---
_Source: https://npm.io/package/@zcorky/throttle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
