# @flywire/flywire-fetch

> Flywire's fetch wrapper

Latest version **0.0.2** (published 2020-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @flywire/flywire-fetch
pnpm add @flywire/flywire-fetch
yarn add @flywire/flywire-fetch
bun add @flywire/flywire-fetch
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-06-30 |
| First published | 2020-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | borcha91, botijo.it, cabargues, flywire.tech, jelohe, vigosan |
| Keywords | flywire, fetch |

## Links

- npm: https://www.npmjs.com/package/@flywire/flywire-fetch
- Repository: https://github.com/peertransfer/flywire-fetch
- Homepage: https://github.com/peertransfer/flywire-fetch.git
- Issues: https://github.com/peertransfer/flywire-fetch/issues
- npm.io page: https://npm.io/package/@flywire/flywire-fetch

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^8.1.0
- [humps](https://npm.io/package/humps.md) ^2.0.1
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^3.0.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2020-06-30
- 0.0.2-9 (beta) — 2020-06-30
- 0.0.2-8 — 2020-06-30
- 0.0.2-7 — 2020-06-30
- 0.0.2-6 — 2020-06-30
- 0.0.2-5 — 2020-06-30
- 0.0.2-4 — 2020-06-30
- 0.0.2-3 — 2020-06-30
- 0.0.2-2 — 2020-06-30
- 0.0.2-1 — 2020-06-30
- 0.0.3-0 — 2020-06-30
- 0.0.1 — 2020-06-29

## README

# flywire-fetch

[<img alt="Version" src="https://img.shields.io/npm/v/@flywire/flywire-fetch.svg">](https://www.npmjs.com/package/@flywire/flywire-fetch)
[<img alt="Size" src="https://img.shields.io/bundlephobia/min/@flywire/flywire-fetch">](https://bundlephobia.com/result?p=@flywire/flywire-fetch)

Flywire's fetch wrapper

## Installation

Add the dependency to your `package.json`:

```javascript
npm i @flywire/flywire-fetch
```

## Usage

```javascript
import fetchJson from '@flywire/flywire-fetch';

async function fetchCountries() {
  const url = `https://api.flywire.lol/v3/countries`;
  const response = await fetchJson(url);

  return response;
}

const countries = fetchCountries();
```

### Config

| Key       | Description                 |
| :-------- | :-------------------------- |
| `url`     | Base url. Default = null    |
| `options` | Fetch options. Default = {} |

## Create a new release

To create a new release, make all the changes that you need and commit them,
then execute:

```bash
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
```

For example:

```bash
npm version patch
```

This will bump the `package.json` version, build a new bundle, commit, push the
changes tagging them to a new release and update the documentation.

Then create a PR and request the review from other project commiters. Once
accepted and merged to master, execute `npm publish` from master branch.

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