@jvlk/fp-ts-fetch

1.3.0 • Public • Published

@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

Package Sidebar

Install

npm i @jvlk/fp-ts-fetch

Weekly Downloads

811

Version

1.3.0

License

MIT

Unpacked Size

10.5 kB

Total Files

15

Last publish

Collaborators

  • jderochervlk