Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/superagent/lib/node/parsers/urlencoded.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/superagent/lib/node/parsers/urlencoded.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject@refs/pr/32/masteringModule/node_modules/superagent/lib/node/parsers/urlencoded.js
-
curl -L -o urlencoded.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/superagent/lib/node/parsers/urlencoded.js
320 Bytes
| /** | |
| * Module dependencies. | |
| */ | |
| var qs = require('qs'); | |
| module.exports = function(res, fn){ | |
| res.text = ''; | |
| res.setEncoding('ascii'); | |
| res.on('data', function(chunk){ res.text += chunk; }); | |
| res.on('end', function(){ | |
| try { | |
| fn(null, qs.parse(res.text)); | |
| } catch (err) { | |
| fn(err); | |
| } | |
| }); | |
| }; |