@jvlk/fp-ts-fetch
v1.5.1
Published
An fp-ts library to make it easy to work with fetch requests.
Downloads
5,968
Maintainers
Readme
@jvlk/fp-ts-fetch
Fetch wrappers for fp-ts
.
Examples
// safeFetch
import { safeFetch } from '@jvlk/fp-ts-fetch'
safeFetch('testing.com')
import { safeFetchJson } from '@jvlk/fp-ts-fetch'
safeFetchJson('api.com')() // => Either<Error, T>
Installing
npm i @jvlk/fp-ts-fetch
yarn add @jvlk/fp-ts-fetch