# @peck/request-lite

> Zero-dependency utility for making http requests and returning ES6 promises

Latest version **1.1.1** (published 2019-04-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @peck/request-lite
pnpm add @peck/request-lite
yarn add @peck/request-lite
bun add @peck/request-lite
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-04-19 |
| First published | 2017-03-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Tyreus |
| Maintainers | jimmy-peckme, narenpublic, pdtyreus |

## Links

- npm: https://www.npmjs.com/package/@peck/request-lite
- Repository: https://github.com/peckinc/request-lite
- Homepage: https://github.com/peckinc/request-lite#readme
- Issues: https://github.com/peckinc/request-lite/issues
- npm.io page: https://npm.io/package/@peck/request-lite

## Recent versions

- 1.1.1 (latest) — 2019-04-19
- 1.1.0 — 2019-04-17
- 1.0.5 — 2019-03-21
- 1.0.4 — 2017-08-18
- 1.0.3 — 2017-06-29
- 1.0.2 — 2017-03-24
- 1.0.1 — 2017-03-24
- 1.0.0 — 2017-03-24

## README

# request-lite

*Zero-dependency utility for making http requests and returning ES6 promises*

* Written in Typescript
* Zero dependencies
* Returns an ES6 Promise

## Usage

Usage is loosly modeled after the excellent [request](https://www.npmjs.com/package/request) package, but with fewer features in exchange for zero dependencies.

```typescript
import request from '@peck/request-lite'

let options = {
    url: 'http://google.com',
    method: 'GET',
}
request(options).then((response) => {
    console.log('success: ',response);
}).catch((error) => {
    console.error('This should not have failed! ', error);
});
```

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