art-rest-client

1.10.1 • Public • Published

ArtRestClient Build Status

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:

Future?

The new-new is 'fetch' - seems to be getting decent support

Readme

Keywords

none

Package Sidebar

Install

npm i art-rest-client

Weekly Downloads

11

Version

1.10.1

License

ISC

Unpacked Size

32.6 kB

Total Files

25

Last publish

Collaborators

  • shanebdavis