jquery2

jQuery2 for browserify

npm install jquery2
4 downloads in the last day
37 downloads in the last week
126 downloads in the last month

browser support

Introduction

A patched version of jQuery 2.0.2 that doesn't create the global $. It's supposed to be used with node-browserify.

With Backbone

// src/backbone.js
'use strict';

var jquery = require('jquery2');
var backbone = require('backbone');

backbone.$ = jquery;

module.exports = backbone;
// src/main.js
'use strict';

var backbone = require('./backbone');

console.log(window.backbone);
// => undefined
console.log(backbone);
// => Backbone
console.log(window.$);
// => undefined
npm loves you