Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Got v12 premature close

node v15.14.0
version: master
endpointsharetweet
const { got } = require("got-cjs"); const devnull = require("dev-null"); const { pipeline } = require("stream/promises"); const gotStream = got("https://google.com", { isStream: true }); const nullStream = devnull(); gotStream.on("response", () => gotStream.destroy()); await pipeline(gotStream, nullStream);
Loading…

no comments

    sign in to comment