# jq

> Server-side jQuery wrapper for node.

Latest version **1.7.2** (published 2012-04-29) · 0 weekly downloads

## Install

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

Provides the command `jq`.

## 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.7.2 |
| Published | 2012-04-29 |
| First published | 2011-11-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.9 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jake Luer |
| Maintainers | jakeluer |

## Links

- npm: https://www.npmjs.com/package/jq
- Repository: https://github.com/logicalparadox/jq
- npm.io page: https://npm.io/package/jq

## Dependencies (2)

- [jsdom](https://npm.io/package/jsdom.md) 0.2.x
- [xmlhttprequest](https://npm.io/package/xmlhttprequest.md) 1.3.x

## Recent versions

- 1.7.2 (latest) — 2012-04-29
- 1.7.1 — 2011-12-19
- 1.7.0 — 2011-12-19
- 1.6.4 — 2011-11-21

## README

# jQ

Use jQuery on the server side of your node.js apps.

    $ npm install jq

The versions on `npm` will coincide with jQuery releases.

Then use:

```js
var $ = require('jq').jQuery;

var doc = '<html><body><div id="hello">Universe!</div></body></html>',
    hello = $('#hello', doc).html();

console.log('Hello ' + hello); // Hello Universe!
```

See tests for other use cases.

## Using other versions of jQuery

Inspired by other jQuery node implementions, but has a version switch tool.

Clone or add as submodule to your project. Then from within `jq` directory get dev dependancies:

    $ npm install

And then use `build` command to switch to a version of your choice:

    $ ./bin/jq build 1.6.4
    
Will accept any version that is listed as tag at [github.com/jquery/jquery](http://github.com/jquery/jquery).

## Tests

Tests require [expresso](https://github.com/visionmedia/expresso).

    $ expresso

## Another one?

This tool is based on the awesome [coolaj86/node-jquery](https://github.com/coolaj86/node-jquery) but with a 
different build system. Needed a little more control over versioning with some upcoming projects.

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