0.5.2 • Published 2 years ago

extra-response v0.5.2

Weekly downloads
111
License
MIT
Repository
github
Last release
2 years ago

extra-response

Utilities for Response.

Install

npm install --save extra-response
# or
yarn add extra-response

API

ok

ok(res: Response): Promise<Response>

If res.ok is false, it will throw HTTPError.

toJSON

toJSON(res: Response): Promise<Json>

toText

toText(res: Response, charset?: string): Promise<string>

toLines

toLines(res: Response): AsyncIterable<string>

Only available on browser, because node-fetch is not provide the WHATWG ReadableStream as body.

toNDJSON

toNDJSON(res: Response): AsyncIterable<Json>

Only available on browser, because node-fetch is not provide the WHATWG ReadableStream as body.

0.5.2

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.5.1

2 years ago

0.3.12

3 years ago

0.4.0

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

3 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.8

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

5 years ago