Utilities for Response.
npm install --save extra-response
# or
yarn add extra-responseok(res: Response): Promise<Response>If res.ok is false, it will throw HTTPError.
toJSON(res: Response): Promise<Json>toText(res: Response, charset?: string): Promise<string>toLines(
res: Response
, newline: string = '\n'
): AsyncIterable<string>Not available for node-fetch, because it is not provide the WHATWG ReadableStream as body.
toNDJSON(
res: Response
, newline: string = '\n'
): AsyncIterable<Json>Not available for node-fetch, because it is not provide the WHATWG ReadableStream as body.