Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jderochervlk/fp-ts-fetch

fp-ts wrappers for fetch.
https://github.com/jderochervlk/fp-ts-fetch

fp fp-ts functional-programming typescript

Last synced: 9 days ago
JSON representation

fp-ts wrappers for fetch.

Awesome Lists containing this project

README

        

# @jvlk/fp-ts-fetch

Fetch wrappers for `fp-ts`.

## Examples
```ts
// safeFetch
import { safeFetch } from '@jvlk/fp-ts-fetch'

safeFetch('testing.com')
```

```ts
import { safeFetchJson } from '@jvlk/fp-ts-fetch'

safeFetchJson('api.com')() // => Either

```

## Installing
```
npm i @jvlk/fp-ts-fetch
```

```
yarn add @jvlk/fp-ts-fetch
```