# JQDeferred

> jQuery deferreds source and unit tests ported verbatim to nodejs using minimal, automated, code transformation

Latest version **2.1.0** (published 2014-01-27) · 0 weekly downloads

## Install

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

## 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 | 2.1.0 |
| Published | 2014-01-27 |
| First published | 2012-04-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 48 |
| Author | Julian Aubourg |
| Maintainers | jaubourg |
| Keywords | callback, deferred, jquery, when |

## Links

- npm: https://www.npmjs.com/package/JQDeferred
- Repository: https://github.com/jaubourg/jquery-deferred-for-node
- Issues: https://github.com/jaubourg/jquery-deferred-for-node/issues
- npm.io page: https://npm.io/package/JQDeferred

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2014-01-27
- 1.11.0 — 2014-01-27
- 1.10.2 — 2014-01-21
- 1.10.1 — 2014-01-21
- 1.10.0 — 2014-01-21
- 2.0.3 — 2014-01-21
- 2.0.2 — 2014-01-21
- 2.0.1 — 2014-01-21
- 2.0.0 — 2014-01-21
- 1.9.1 — 2013-03-28
- 1.9.0 — 2013-01-20
- 1.8.3 — 2012-12-01
- 1.8.2 — 2012-09-27
- 1.8.1 — 2012-09-01
- 1.8.0 — 2012-08-17
- … 11 more at https://npm.io/package/JQDeferred/versions

## README

jQuery Deferreds for nodejs
===========================
jQuery Deferreds source and unit tests ported verbatim to nodejs using minimal, automated, code transformation.

### Rationale

This is the exact same code, running the exact same unit tests. Why use a bad copy when you can use the original?

### Installation

* use npm: `npm install JQDeferred`
* or put JQDeferred as a dependency in `package.json`.

### Using

`var Deferred = require( "JQDeferred" );`

### Correspondences

| jQuery        | JQDeferred           |
| -------------:|:--------------------:|
| `$.Deferred`  | `Deferred`           |
| `$._Deferred` | `Deferred._Deferred` |
| `$.when`      | `Deferred.when`      |
| `$.Callbacks` | `Deferred.Callbacks` |

`_Deferred` only available prior to 1.7.0

`Callbacks` only available as of 1.7.0.

### Documentation

Just head to the [jQuery API site](http://api.jquery.com/):
* [`Deferred`](http://api.jquery.com/category/deferred-object/)
* [`Callbacks`](http://api.jquery.com/category/callbacks-object/)

### Versioning

There is an exact correspondence between the version of the package and the version of jQuery from which it has been extracted. So, if you want to use Deferreds as they were in jQuery 1.5.2, just use `npm install JQDeferred@1.5.2`.

Of course, this is not _really_ semantic versioning but it makes a lot more sense than maintaining a separate version.

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