# setasap

> setImmediate polyfill for the browser and node

Latest version **2.0.1** (published 2018-02-07) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2018-02-07 |
| First published | 2014-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/setasap) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Taylor Hakes |
| Maintainers | taylorhakes |
| Keywords | setImmediate, task, setAsap, setTimeout, process.nextTick |

## Links

- npm: https://www.npmjs.com/package/setasap
- Repository: https://taylorhakes@github.com/taylorhakes/setAsap
- Homepage: https://github.com/taylorhakes/setAsap
- Issues: https://github.com/taylorhakes/setAsap/issues
- npm.io page: https://npm.io/package/setasap

## Recent versions

- 2.0.1 (latest) — 2018-02-07
- 2.0.0 — 2016-04-14
- 1.1.0 — 2016-02-22
- 1.0.1 — 2015-11-17
- 1.0.0 — 2015-11-17
- 0.8.0 — 2015-01-09
- 0.7.3 — 2014-05-14
- 0.7.1 — 2014-05-14
- 0.6.1 — 2014-04-26
- 0.6.0 — 2014-04-26

## README

setAsap [![Build Status](https://travis-ci.org/taylorhakes/setAsap.png?branch=master)](https://travis-ci.org/taylorhakes/setAsap)
====

setImmediate polyfill for the browser and node. This is an alternative to `setTimeout(fn, 0)`, which behaves like `setTimeout(fn, 4)`. setAsap will execute immediately. It has unmatched performance and is extremely lightweight.
### Install
```
npm install setasap --save
```


### Use
```
setAsap(function() {
  // do something async
});
```

#### Note
Currently, there is no way to cancel setAsap. The code base is much smaller without it.

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