# s25-http

> promise-based http client

Latest version **1.0.6** (published 2019-07-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install s25-http
pnpm add s25-http
yarn add s25-http
bun add s25-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.6 |
| Published | 2019-07-10 |
| First published | 2019-06-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mdanon |

## Links

- npm: https://www.npmjs.com/package/s25-http
- Homepage: https://github.com/vidiac/s25-http
- npm.io page: https://npm.io/package/s25-http

## Recent versions

- 1.0.6 (latest) — 2019-07-10
- 1.0.5 — 2019-06-27
- 1.0.4 — 2019-06-26
- 1.0.3 — 2019-06-24
- 1.0.2 — 2019-06-24
- 1.0.1 — 2019-06-24
- 1.0.0 — 2019-06-24

## README

## Installation
    $ npm install --save s25-http

## Usage
    import http from 's25-http'

    http('/your-url').get().then(response => console.log(response))
    http('/your-url').get({paramKey: paramValue}).then(response => console.log(response))
    http('/your-url').post({paramKey: paramValue}).then(response => console.log(response))



    const formData = new FormData()
    formData.append('message', 'CustomText')

    http('/your-url').post(formData).then(response => console.log(response))

## CustomHeaders
    const headers = {
        'header-name1': 'HeaderValue1',
        'header-name2': 'HeaderValue2',
    }

    http('/your-url', { headers })
        .get()
        .then(response => console.log(response))

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