# art-rest-client

> Promise-based rest-client library. Makes HTTP/HTTPS easy in both NODE and BROWSER.

Latest version **1.10.3** (published 2025-11-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install art-rest-client
pnpm add art-rest-client
yarn add art-rest-client
bun add art-rest-client
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.10.3 |
| Published | 2025-11-07 |
| First published | 2017-03-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 31.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Shane Brinkman-Davis Delamore |
| Maintainers | shanebdavis |

## Links

- npm: https://www.npmjs.com/package/art-rest-client
- Repository: https://github.com/art-suite/art-suite-foundations
- Issues: https://github.com/art-suite/art-suite-foundations/issues
- npm.io page: https://npm.io/package/art-rest-client

## Dependencies (4)

- [xhr2](https://npm.io/package/xhr2.md) ^0.2.1
- [art-class-system](https://npm.io/package/art-class-system.md) ^1.11.20
- [art-standard-lib](https://npm.io/package/art-standard-lib.md) ^1.74.4
- [art-communication-status](https://npm.io/package/art-communication-status.md) ^1.6.2

## Recent versions

- 1.10.3 (latest) — 2025-11-07
- 1.10.2 — 2024-11-27
- 1.10.1 — 2024-08-16
- 1.10.0 — 2023-11-10
- 1.9.3 — 2022-07-14
- 1.9.2 — 2021-07-28
- 1.9.1 — 2021-03-26
- 1.9.0 — 2020-12-30
- 1.8.11 — 2020-12-12
- 1.8.10 — 2020-10-30
- 1.8.9 — 2020-10-30
- 1.8.8 — 2020-08-23
- 1.8.7 — 2020-08-23
- 1.8.5 — 2020-06-29
- 1.8.4 — 2020-06-29
- … 12 more at https://npm.io/package/art-rest-client/versions

## README

# ArtRestClient [![Build Status](https://travis-ci.org/imikimi/art-rest-client.svg?branch=master)](https://travis-ci.org/imikimi/art-rest-client)

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
```coffeescript
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
* https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
* https://caniuse.com/#feat=fetch

---
_Source: https://npm.io/package/art-rest-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
