Skip to main content

busboy

PropertyValue
Packagebusboy
Versions Covered>=1.0.0
Contract Version1.0.0
Statusproduction
Last Verified2026-02-27
Maintainercorpus-team

Installation

npm install busboy

Covered Functions

This contract covers 1 function(s):

Busboy()

Creates Busboy parser instance

Import:

import { Busboy } from 'busboy';

Postconditions

What happens after calling this function:

🔴 ERROR - busboy-001

Condition: parsing fails due to limits or malformed data

Throws: Error emitted via 'error' event

Required Handling:

Caller MUST attach error event listener to Busboy instance

📖 Source


Example: Proper Error Handling

import busboy from 'busboy';

async function example() {
try {
const result = await Busboy(/* args */);
// Handle success
return result;
} catch (error) {
// Handle error according to contract postconditions
console.error('Error:', error);
throw error;
}
}

See Also