1.0.6 • Published 5 years ago

@ts-task/fetch v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Tasks Fetch

This library is a wrapper of the fetch API to use with Tasks instead of promises.

Use

Install it

npm i @ts-task/fetch

Use it

import { fetch } from '@ts-task/fetch';

fetch('https://jsonplaceholder.typicode.com/todos/1')
  .chain(response => response.json())
  .fork(
      err => console.error('Oh no', err),
      json => console.log(json)
    )
;
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago