# @krave/fixed-got

> A very simplified version of got

Latest version **0.0.1** (published 2023-01-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @krave/fixed-got
pnpm add @krave/fixed-got
yarn add @krave/fixed-got
bun add @krave/fixed-got
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-01-12 |
| First published | 2023-01-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Krave |
| Maintainers | krave |

## Links

- npm: https://www.npmjs.com/package/@krave/fixed-got
- Repository: https://github.com/krave1986/fixed-got
- Homepage: https://github.com/krave1986/fixed-got#readme
- Issues: https://github.com/krave1986/fixed-got/issues
- npm.io page: https://npm.io/package/@krave/fixed-got

## Dependencies (1)

- [got](https://npm.io/package/got.md) ^11.8.6

## Recent versions

- 0.0.1 (latest) — 2023-01-12

## README

# A very simplified version of got

## Usage

```javascript
const fixedGot = require("fixed-got")

const result = await fixedGot(URL, time_limit, retry_interval, time_origin).josn()
```

## Purpose of this lib

It uses a very simple mechanism to do retry based on `got` if an error.

The time we start the request is `time_origin`, and we order the request must finish in the `time_limit` even if any errors. And with the help of `retry_interval`, we can set how long to wait for the next retry.

## Parameters

- `URL`

- `time_limit`
  Required

- `retry_interval`
  Optional. Defaults to `1000`

- `time_origin`
  Optional. Defaults to `performance.now()`

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