# eop-http

> > 一个简单的http请求库

Latest version **1.0.2** (published 2020-01-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install eop-http
pnpm add eop-http
yarn add eop-http
bun add eop-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.2 |
| Published | 2020-01-19 |
| First published | 2020-01-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | hongliang |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2020-01-19
- 1.0.1 — 2020-01-19
- 1.0.0 — 2020-01-16

## README

# eop-http
> 一个简单的http请求库

### Installation
```
npm install eop-http
```

### Usage
``` javascript
const { http, curl } = require('../lib/http');

http.get('http://127.0.0.1:3000', { name: 'aa' })
	.then(function (res) {
		console.log('res=>', res);
	}).catch(function (err) {
		console.log('err=>', err);
	});

let opts = {
	method: 'post',
	url: 'https://127.0.0.1:3000/v1/user'
}
curl(opts)
	.then(function (res) {
		console.log('res=>', res);
	}).catch(function (err) {
		console.log('err=>', err);
	});
```

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