Download node_modules/axios/lib/helpers/toURLEncodedForm.js from Neilqwe/eu4: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/Neilqwe/eu4/resolve/main/node_modules/axios/lib/helpers/toURLEncodedForm.js
- Command line
-
hf download hf://spaces/Neilqwe/eu4/node_modules/axios/lib/helpers/toURLEncodedForm.js
-
curl -L -o toURLEncodedForm.js https://huggingface.co/spaces/Neilqwe/eu4/resolve/main/node_modules/axios/lib/helpers/toURLEncodedForm.js
548 Bytes
| ; | |
| import utils from '../utils.js'; | |
| import toFormData from './toFormData.js'; | |
| import platform from '../platform/index.js'; | |
| export default function toURLEncodedForm(data, options) { | |
| return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({ | |
| visitor: function(value, key, path, helpers) { | |
| if (platform.isNode && utils.isBuffer(value)) { | |
| this.append(key, value.toString('base64')); | |
| return false; | |
| } | |
| return helpers.defaultVisitor.apply(this, arguments); | |
| } | |
| }, options)); | |
| } | |