From 761dbcb87ccfde754444463025c49fa34bb18ffc Mon Sep 17 00:00:00 2001 From: Dominik Szczepaniak <93583958+dszczepaniak-cksource@users.noreply.github.com> Date: Mon, 10 Jan 2022 15:33:51 +0100 Subject: [PATCH] readme: fix README `mimeType` parameter inconsistency Fixes: https://github.com/mscdex/busboy/issues/270 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c8d024..a6ee64d 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,12 @@ http.createServer((req, res) => { console.log('POST request'); const bb = busboy({ headers: req.headers }); bb.on('file', (name, file, info) => { - const { filename, encoding, mime } = info; + const { filename, encoding, mimeType } = info; console.log( - `File [${name}]: filename: %j, encoding: %j, mime: %j`, + `File [${name}]: filename: %j, encoding: %j, mimeType: %j`, filename, encoding, - mime + mimeType ); file.on('data', (data) => { console.log(`File [${name}] got ${data.length} bytes`);