I have a module that is supposed to run on the client, but I'm testing it on Node.js, so I'd like to make $.ajax to work.
I installed jQuery on the project:
$ npm install jQuery
Then I'm doing this:
var $ = require("jquery");
console.log($.ajax); // undefined
$.ajax is undefined.
It makes a bit of sense for me because ajax is static and I think the result of require("jquery") would be the equivalent of $.fn in the browser.
How do I use $.ajax on node?