Download node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js from HarshvardhanCn01/Voice-Assistant: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js
- Command line
-
hf download hf://spaces/HarshvardhanCn01/Voice-Assistant/node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js
-
curl -L -o normalizeValue.js https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js
356 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| const normalizeValue = (value) => String(value) | |
| .replace(/\r|\n/g, (match, i, str) => { | |
| if ((match === "\r" && str[i + 1] !== "\n") | |
| || (match === "\n" && str[i - 1] !== "\r")) { | |
| return "\r\n"; | |
| } | |
| return match; | |
| }); | |
| exports.default = normalizeValue; | |