1.10.2 • Published 7 months ago
art-rest-client v1.10.2
ArtRestClient 
Promise-based rest-client javascript library. Makes HTTP/HTTPS easy.
Works both in browser and NodeJs.
Features
- promise based
- streamlined JSON requests
- streamlined binary support
- CORS friendly
Install
npm install art-rest-client
Example
RestClient = require './art-rest-client'
RestClient.getJson "http://somewhere.com/users/123"
.then ({username, email}) ->
RestClient.putJson "http://somewhere.com/users/123",
username: "Mr New #{username}"
Info
uses XMLHttpRequest2:
- http://www.w3.org/TR/XMLHttpRequest2/
- http://www.html5rocks.com/en/tutorials/file/xhr2/
- https://www.npmjs.com/package/xhr2
Future?
The new-new is 'fetch' - seems to be getting decent support
1.10.2
7 months ago
1.10.1
10 months ago
1.10.0
2 years ago
1.9.3
3 years ago
1.9.2
4 years ago
1.9.1
4 years ago
1.9.0
4 years ago
1.8.11
5 years ago
1.8.9
5 years ago
1.8.10
5 years ago
1.8.8
5 years ago
1.8.7
5 years ago
1.8.5
5 years ago
1.8.4
5 years ago
1.8.3
5 years ago
1.8.2
5 years ago
1.8.1
5 years ago
1.8.0
5 years ago
1.7.0
5 years ago
1.6.8
6 years ago
1.6.7
6 years ago
1.6.5
7 years ago
1.4.1
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago