Spaces:
Sleeping
Sleeping
Download node_modules/@fastify/busboy/lib/utils/getLimit.js from carpool-team/Carpool: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/%40fastify/busboy/lib/utils/getLimit.js
- Command line
-
hf download hf://spaces/carpool-team/Carpool/node_modules/@fastify/busboy/lib/utils/getLimit.js
-
curl -L -o getLimit.js https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/%40fastify/busboy/lib/utils/getLimit.js
359 Bytes
| module.exports = function getLimit (limits, name, defaultLimit) { | |
| if ( | |
| !limits || | |
| limits[name] === undefined || | |
| limits[name] === null | |
| ) { return defaultLimit } | |
| if ( | |
| typeof limits[name] !== 'number' || | |
| isNaN(limits[name]) | |
| ) { throw new TypeError('Limit ' + name + ' is not a valid number') } | |
| return limits[name] | |
| } | |