Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 418 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 418 Bytes

xall

Barely-there xhr for json

What?

A tiny xhr+json library.

Why?

When all you do is fetch blobs of json superagent is just too much.

How?

xall exposes one function, with the following signature:

({method = 'get', url, data, headers, query}, callback)

Arguments:

method: One of 'get', 'post', 'del' & 'put'. 'get' is default.
url: String.
data: Object.
headers: Object.
query: Object.