# pubcore-http

> returns a http request promise for web browser based apps

Latest version **1.0.8** (published 2019-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install pubcore-http
pnpm add pubcore-http
yarn add pubcore-http
bun add pubcore-http
```

## 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.8 |
| Published | 2019-08-03 |
| First published | 2017-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dominix, jacklrs |
| Keywords | http-client, json-only, browser, lightweight, xmlhttprequest |

## Links

- npm: https://www.npmjs.com/package/pubcore-http
- Repository: https://github.com/pubcore/httpRequest
- Homepage: https://github.com/pubcore/httpRequest#readme
- Issues: https://github.com/pubcore/httpRequest/issues
- npm.io page: https://npm.io/package/pubcore-http

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2019-08-03
- 1.0.7 — 2019-06-07
- 1.0.6 — 2018-05-21
- 1.0.5 — 2017-12-29
- 1.0.4 — 2017-11-13
- 1.0.3 — 2017-06-09
- 1.0.2 — 2017-06-09
- 1.0.1 — 2017-06-07
- 1.0.0 — 2017-06-07

## README

[![Build Status](https://travis-ci.org/pubcore/httpRequest.svg?branch=master)](https://travis-ci.org/pubcore/httpRequest)

# little XMLHttpRequest wrapper to perform http(s) requests in web browser apps

- only deals with application/json media
- to use in web browser context
- small/simple code base

## Example

    import http from 'pubcore-http'
    import {doSomething, feedback} from './yourCode'

    //POST some data, returns a Promise
    http('https://my.domain.com/chat?locale=en-US', {text:'Hi!'}).then(
        response => doSomething(response),
        error => feedback(error)
    )

    //GET some data, returns a Promise
    http('https://my.domain.com/chat/latest', null, 'GET').then(
        response => doSomething(response),
        error => feedback(error)
    )

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