We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fb09f commit 8a449ebCopy full SHA for 8a449eb
blog/25-08-27/how-to-download-a-github-directory/ex/nodejs-zip.js
@@ -1,8 +1,8 @@
1
2
3
- var sandbox = {};
4
- sandbox.cjs = txt=>Promise.resolve(eval(`(()=>{var exports={},module={};${txt};return module.exports})()`));
5
- var url = 'https://raw.githubusercontent.com/stuk/jszip/main/dist/jszip.min.js';
6
- var JSZip = await fetch(url).then(res=>res.text().then(sandbox.cjs));
7
- console.log(JSZip);
+ var sandbox = {};
+ sandbox.cjs = txt=>Promise.resolve(eval(`(()=>{var exports={},module={};${txt};return module.exports})()`));
+ var url = 'https://raw.githubusercontent.com/stuk/jszip/main/dist/jszip.min.js';
+ var JSZip = await fetch(url).then(res=>res.text().then(sandbox.cjs));
+ console.log(JSZip);
8
0 commit comments