Needlessly Provoking Marsupials

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

node-jquery-xhr

2.1.3-a • Public • Published

node-jquery-xhr

Provide window, jQuery and $ to node integrating jquery, jsdom and xmlhttprequest.

How to use

Let's say you use npm, add "node-jquery-xhr" to dependencies section of package.js

require("node-jquery-xhr")

You can access like this

window.document
body = $("body")

Also $.ajax, too.

$.ajax({
  method: 'get',
  url: 'http://www.yahoo.com',
  success: function(r) {
    console.log(r);
  }
});

History

1.8.3

0.1.1

  • support $.ajax using xmlhttprequest

0.1.0

  • first release

License

MIT License

Thanks

Keywords

none

install

npm i node-jquery-xhr

Downloadsweekly downloads

5

version

2.1.3-a

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability