1.0.5 • Published 5 years ago

tallbag-from-fetch v1.0.5

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

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))
) // [{...}, {...}, {...}, {...}, {...}]
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