Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/formidable/lib/octet_parser.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/formidable/lib/octet_parser.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject/masteringModule/node_modules/formidable/lib/octet_parser.js
-
curl -L -o octet_parser.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/formidable/lib/octet_parser.js
456 Bytes
| var EventEmitter = require('events').EventEmitter | |
| , util = require('util'); | |
| function OctetParser(options){ | |
| if(!(this instanceof OctetParser)) return new OctetParser(options); | |
| EventEmitter.call(this); | |
| } | |
| util.inherits(OctetParser, EventEmitter); | |
| exports.OctetParser = OctetParser; | |
| OctetParser.prototype.write = function(buffer) { | |
| this.emit('data', buffer); | |
| return buffer.length; | |
| }; | |
| OctetParser.prototype.end = function() { | |
| this.emit('end'); | |
| }; | |