# jQuery

> jQuery: The Write Less, Do More, JavaScript Library (packaged for Node.JS)

Latest version **1.7.4** (published 2012-07-01) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.7.4 |
| Published | 2012-07-01 |
| First published | 2011-08-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 431 |
| Author | James Morrin |
| Maintainers | coolaj86, treasonx |
| Keywords | util, dom, jquery |

## Links

- npm: https://www.npmjs.com/package/jQuery
- Repository: https://github.com/coolaj86/node-jquery
- Issues: https://github.com/coolaj86/node-jquery/issues
- npm.io page: https://npm.io/package/jQuery

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.7.4 (latest) — 2012-07-01
- 1.7.3 — 2012-07-01
- 1.7.2 — 2012-05-01
- 1.6.3 — 2011-09-12
- 1.6.2 — 2011-08-18

## README

node-jQuery
====

A stupid-simple wrapper over jQuery for  Node.JS (server). Currently 1.7.2.

Node.JS
---

    npm install jQuery

    var $ = require('jQuery');


Examples
---

    $("<h1>test passes</h1>").appendTo("body");
    console.log($("body").html());

In Node.JS you may also create separate window instances

    var jsdom = require('jsdom').jsdom
      , myWindow = jsdom().createWindow()
      , $ = require('jQuery')
      , jq = require('jQuery').create()
      , jQuery = require('jQuery').create(myWindow)
      ;

    $("<h1>test passes</h1>").appendTo("body");
    console.log($("body").html());

    jq("<h2>other test passes</h2>").appendTo("body");
    console.log(jq("body").html());

    jQuery("<h3>third test passes</h3>").appendTo("body");
    console.log(jQuery("body").html());

Output:

    <h1>test passes</h1>
    <h2>other test passes</h2>
    <h3>third test passes</h3>

JSONP Example
----

    var $ = require('jQuery');

    $.getJSON('http://twitter.com/status/user_timeline/treason.json?count=10&callback=?',function(data) {
      console.log(data);
    });

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