highland-fetch

1.0.3 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i highland-fetch

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • protometa