Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/superagent/lib/node/parsers/image.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/superagent/lib/node/parsers/image.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject@refs/pr/32/masteringModule/node_modules/superagent/lib/node/parsers/image.js
-
curl -L -o image.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/superagent/lib/node/parsers/image.js
229 Bytes
| module.exports = function(res, fn){ | |
| var data = []; // Binary data needs binary storage | |
| res.on('data', function(chunk){ | |
| data.push(chunk); | |
| }); | |
| res.on('end', function () { | |
| fn(null, Buffer.concat(data)); | |
| }); | |
| }; |