# @fishx/rest

> Restful client for fishx

Latest version **3.0.0** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fishx/rest
pnpm add @fishx/rest
yarn add @fishx/rest
bun add @fishx/rest
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2023-11-21 |
| First published | 2019-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 112.9 KB |
| Known vulnerabilities | 0 (+29 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | whalecloud-developer |

## Links

- npm: https://www.npmjs.com/package/@fishx/rest
- npm.io page: https://npm.io/package/@fishx/rest

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) 1.6.2
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [lodash.throttle](https://npm.io/package/lodash.throttle.md) ^4.1.1

## Recent versions

- 3.0.0 (latest) — 2023-11-21
- 3.0.0-alpha.1 (alpha) — 2023-11-21
- 2.0.13 — 2023-06-05
- 2.0.12 — 2023-02-24
- 2.0.11 — 2023-02-24
- 2.0.10 — 2023-02-23
- 2.0.9 — 2022-10-21
- 2.0.8 — 2021-03-15
- 2.0.7 — 2020-10-30
- 2.0.6 — 2020-09-28
- 2.0.5 — 2020-07-09
- 2.0.4 — 2020-07-02
- 2.0.3 — 2020-04-01
- 2.0.2 — 2020-04-01
- 2.0.1 — 2020-04-01
- … 9 more at https://npm.io/package/@fishx/rest/versions

## README

# @fishx/rest

## Installation

```sh
yarn add @fishx/rest
```

## Usage

```jsx
import React from 'react'
import { useFetch } from '@fishx/rest'

const Todos = () => {
  const { loading, data, error } = useFetch(
    'https://jsonplaceholder.typicode.com/todos',
  )

  if (loading) return <span>loading...</span>
  if (error) return <span>error!</span>

  return (
    <ul>
      {data.map(item => (
        <li key={item.id}>{item.title}</li>
      ))}
    </ul>
  )
}
export defulat Todos
```

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