Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jderochervlk/fp-ts-fetch
- Owner: jderochervlk
- License: mit
- Created: 2022-11-04T19:38:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T17:26:18.000Z (9 months ago)
- Last Synced: 2024-04-08T20:31:37.583Z (9 months ago)
- Topics: fp, fp-ts, functional-programming, typescript
- Language: TypeScript
- Homepage: https://jderochervlk.github.io/fp-ts-fetch/
- Size: 1.76 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
```