1.0.3 • Published 7 years ago

highland-fetch v1.0.3

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

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

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago