Promise-based rest-client javascript library. Makes HTTP/HTTPS easy.
Works both in browser and NodeJs.
- promise based
- streamlined JSON requests
- streamlined binary support
- CORS friendly
npm install art-rest-client
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}"