Download node_modules/axios/lib/helpers/toURLEncodedForm.js from kirimdata369/task-manager-pro: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/spaces/kirimdata369/task-manager-pro/resolve/main/node_modules/axios/lib/helpers/toURLEncodedForm.js
- Command line
-
hf download hf://spaces/kirimdata369/task-manager-pro/node_modules/axios/lib/helpers/toURLEncodedForm.js
-
curl -L -o toURLEncodedForm.js https://huggingface.co/spaces/kirimdata369/task-manager-pro/resolve/main/node_modules/axios/lib/helpers/toURLEncodedForm.js
542 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(), { | |
| 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, | |
| }); | |
| } | |