Skip to content

Basically RxJS's fromFetch converted to a tallbag listenable source.

Notifications You must be signed in to change notification settings

drejohnson/tallbag-from-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tallbag-from-fetch

Basically RxJS's fromFetch converted to a tallbag listenable source.

AbortController is required for this implementation to work and use cancellation appropriately

npm install tallbag-from-fetch

example

import pipe from 'tallbag-pipe'
import fromFetch from 'tallbag-from-fetch'
import observe from 'callbag-observe'

pipe(
  fromFetch('https://api.github.com/users?per_page=5'),
  map(response => response.json()),
  observe(async data => console.log(await data))
) // [{...}, {...}, {...}, {...}, {...}]

About

Basically RxJS's fromFetch converted to a tallbag listenable source.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published