# node-jquery **Repository Path**: mirrors_defunctzombie/node-jquery ## Basic Information - **Project Name**: node-jquery - **Description**: jQuery with a thin wrapper for Ender.JS, Node.JS, and other npm-based packaging systems - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README DOES NOT WORK ON WINDOWS ==== Many people are having problems getting this module to work on windows. The failure has to do with building contextify on window. It seems to be a windows environment issue. I don't have access to a windows machine so I cannot explore working through the windows install process. If you figure out how to build [contextify](https://github.com/brianmcd/contextify) on windows please send me working instructions! NPM module jQuery is an EnderJS package. ==== please use `npm install jquery` not `npm install jQuery` 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 --- ```javascript $("

test passes

").appendTo("body"); console.log($("body").html()); ``` In Node.JS you may also create separate window instances ```javascript var jsdom = require('jsdom').jsdom , myWindow = jsdom().createWindow() , $ = require('jquery') , jq = require('jquery').create() , jQuery = require('jquery').create(myWindow) ; $("

test passes

").appendTo("body"); console.log($("body").html()); jq("

other test passes

").appendTo("body"); console.log(jq("body").html()); jQuery("

third test passes

").appendTo("body"); console.log(jQuery("body").html()); ``` Output: ```html

test passes

other test passes

third test passes

``` JSONP Example ---- ```javascript var $ = require('jquery'); $.getJSON('http://twitter.com/status/user_timeline/treason.json?count=10&callback=?',function(data) { console.log(data); }); ```