Promise based XHR client with JSON as default.
Installation
npm install --save-dev jhr
Usage
This module attempts to treat AJAX/XHR requests as a function of http. Responses are typed for common http statuses (see the Response submodule) un-supported ones have the type Response.Untyped.
; ; agent.get'http://example.com'.then.catch;
License
Apache-2.0 © Lasana Murray