Skip to content

protometa/highland-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Can be used to extend fetch Response to give highland stream. Also comes with textDecoder transform.

import _ from 'highland'
import {toHighland, textDecoder} from 'highland-fetch'

// extend Response
Response.prototype.highland = toHighland

// highland stream of response body text
_(fetch('http://www.example.com'))
.flatMap(res => res.highland())
.through(textDecoder)

About

Experimental conversion of Fetch streams to Highland streams

Resources

Stars

Watchers

Forks

Packages

No packages published