@ts-task/fetch
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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)
    )
;

/@ts-task/fetch/

    Package Sidebar

    Install

    npm i @ts-task/fetch

    Weekly Downloads

    1

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    34.7 kB

    Total Files

    11

    Last publish

    Collaborators

    • dggluz
    • hrajchert