1.0.5 • Published 7 years ago

tallbag-from-fetch v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago