Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/axetroy/fata

基于 Fetch 的优雅而且现代的 HTTP 客户端。Elegant and modern HTTP client based on Fetch
https://github.com/axetroy/fata

Last synced: 7 days ago
JSON representation

基于 Fetch 的优雅而且现代的 HTTP 客户端。Elegant and modern HTTP client based on Fetch

Awesome Lists containing this project

README

        

中文简体 | [English](README_en-US.md)

[![Build Status](https://github.com/axetroy/fata/workflows/ci/badge.svg)](https://github.com/axetroy/fata/actions)

基于 Fetch 的优雅的且现代化的 HTTP 客户端

### 安装

```bash
$ npm install @axetroy/fata --save-exact
```

```typescript
import fata from '@axetroy/fata

fata.get("/api/api/user/{userId}", { path: { userId: 'foo' } })
.then((data) => {
console.log(data)
})
```

## 开源许可

The [MIT License](LICENSE)