# web-http-promise-client

> Frontend library - HTTP promise client

Latest version **1.0.12** (published 2020-04-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install web-http-promise-client
pnpm add web-http-promise-client
yarn add web-http-promise-client
bun add web-http-promise-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2020-04-13 |
| First published | 2019-12-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 35.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexander Sustavov |
| Maintainers | takovoy |

## Links

- npm: https://www.npmjs.com/package/web-http-promise-client
- Repository: https://github.com/takovoy/web-http-promise-client
- Homepage: https://github.com/takovoy/web-http-promise-client#readme
- Issues: https://github.com/takovoy/web-http-promise-client/issues
- npm.io page: https://npm.io/package/web-http-promise-client

## Dependencies (1)

- [test-mock.namespace](https://npm.io/package/test-mock.namespace.md) 1.0.0

## Recent versions

- 1.0.12 (latest) — 2020-04-13
- 1.0.10 — 2020-02-24
- 1.0.4 — 2020-01-09
- 1.0.3 — 2019-12-27
- 1.0.2 — 2019-12-27
- 1.0.1 — 2019-12-26
- 1.0.0 — 2019-12-26

## README

# web-http-promise-client
Frontend library - HTTP promise client

There are few static rest methods (get, post, put)

Example:

```javascript
import { HTTPClient } from "web-http-promise-client/out/index";

// payload, query, noCache, contentType - are not required arguments
HTTPClient.get("yourAwesomeURL", payload, query, noCache, contentType)
    .then(response => console.log(response))
    .catch(xhrObject => console.log(xhrObject));

// post and put methods have the same signature
HTTPClient.post("yourAwesomeURL", payload, query, noCache, contentType);
HTTPClient.put("yourAwesomeURL", payload, query, noCache, contentType);
```

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