Got cancel with cache

node v16.18.0
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const got=require("got").default const cache = new Map(); const r = got("https://example.com/", { cache: cache }); r.on('downloadProgress', () => { r.cancel(); }); r.catch(e => console.log(e));
Loading…

no comments

    sign in to comment