# simple_request

> Promisefied version of the Request package

Latest version **1.0.0** (published 2017-03-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple_request
pnpm add simple_request
yarn add simple_request
bun add simple_request
```

## 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.0 |
| Published | 2017-03-15 |
| First published | 2017-03-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Daniel Pedroso |
| Maintainers | danp3d |

## Links

- npm: https://www.npmjs.com/package/simple_request
- npm.io page: https://npm.io/package/simple_request

## Dependencies (2)

- [q](https://npm.io/package/q.md) ^1.4.1
- [request](https://npm.io/package/request.md) ^2.69.0

## Recent versions

- 1.0.0 (latest) — 2017-03-15

## README

# simple_request
(very) simple wrapper around the 'request' package to ensure it returns promises (using Q).

Install package:
```

    npm install git+https://github.com/danp3d/simple_request.git
    
```

Usage:
```javascript
    
    const simple_request = require('simple_request')

    simple_request('http://jsonplaceholder.typicode.com/posts/1', { json: true }).then((res) => {
        let response = res[0]
        let body = res[1]
        
        if (response.statusCode === 200)
            console.log('Success!')
            
        console.log(body)
    }).catch(logError)
```

## Methods
- get
- post
- put
- del


Yep, that's all it does.

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