From 00e56d92d0635cd02206952e8ead541e9e4dfa0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bro=C5=88a=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Fri, 23 Dec 2022 04:03:56 +0100 Subject: [PATCH] Fixed lowercase B for bytes --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 89aa0b5..89f908b 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ app.post("*", async (request, response) => { await fs.promises.mkdir(directoryPath, { recursive: true }); await fs.promises.writeFile(fullPath, request.body); - console.log(`${request.body.byteLength} b`.padStart(10), `|`, requestPath); + console.log(`${request.body.byteLength} B`.padStart(10), `|`, requestPath); response.sendStatus(204); diff --git a/package.json b/package.json index 73e93ae..664b868 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-http-file-saver", - "version": "1.0.0", + "version": "1.0.1", "description": "A simple program running an HTTP server on localhost. It saves any POST request body into a file, whose location (inside a specified output directory) is determined by the request pathname.", "homepage": "https://github.com/brona-ruzicka/simple-http-file-saver#readme", "keywords": ["http", "express", "npx", "utility"],