qjax
A simple Q wrapper for making ajax requests
Usage
Use it like you would use $.ajax
, only as a Q/A+ Promise:
var qjax = ;var options = url: 'http://google.com' type: 'GET';var { console;}; qjax;
There is also an http method factory that can be used like this:
var qjax = ;var httpGet = qjax;var { console;}; ;
By default qjax uses jQuery.ajax
, but you can configure it to use Request - Simplified HTTP Client:
var qjax = ;var request = ;var qRequest = qjax; qjax; qjax;
Development
Install it:
npm install qjax
Test it:
mocha
Lint it:
jshint index.js
jshint test/*