ajax-cp

0.2.0 • Public • Published

ajaxp

Small promise-based ajax library with a reasonable (hopefully) cancel mechanic

ajaxcp(url, [options]) -> {request : Promise, cancel : function}

ajaxcp

Executes an ajax request to the given url. Returns an object with the request promise and a cancel method. The request promise resolves to a response object on success, or null if canceled before completion.

Readme

Keywords

Package Sidebar

Install

npm i ajax-cp

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

118 kB

Total Files

12

Last publish

Collaborators

  • axel669