Code Monkey home page Code Monkey logo

jquery-deferred-for-node's Introduction

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" );

Correspondances

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:

Versioning

There is an exact correspondance between the version of the package and the version of jQuery from which it has been generated. So, if you want to use Deferreds as they were in jQuery 1.5.2, just use npm install [email protected].

Of course, this is not really semantic versioning but it makes a lot more sense than maintaining a separate version.

jquery-deferred-for-node's People

Contributors

jaubourg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.