# onresize

> Resource concious window.resize

Latest version **1.0.1** (published 2015-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install onresize
pnpm add onresize
yarn add onresize
bun add onresize
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-09-08 |
| First published | 2015-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | basaratali@gmail.com |
| Maintainers | basarat |
| Keywords | Window, resize, requestAnimationFrame, TypeScript |

## Links

- npm: https://www.npmjs.com/package/onresize
- Repository: https://github.com/basarat/onresize
- Homepage: https://github.com/basarat/onresize#readme
- Issues: https://github.com/basarat/onresize/issues
- npm.io page: https://npm.io/package/onresize

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-09-08
- 1.0.0 — 2015-09-08

## README

# onresize 🌹
An optimized window.resize function

```js
var onresize = require('onresize');
// start process
var {dispose} = onresize.on(function() {
    console.log('Resource conscious resize callback!')
});

// once done
dispose();
```

Also: 
* comes with TypeScript definitions built in
* returns an object that has a `dispose` function to unhook the handler

To learn more on why you would want to use this [checkout this article](https://developer.mozilla.org/en-US/docs/Web/Events/resize).

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