From 8175a1dcd64db8de59b3ca47fb758da28388dc3d Mon Sep 17 00:00:00 2001 From: Kirill Shaplyko Date: Fri, 3 May 2024 20:05:05 +0200 Subject: [PATCH] Update README.md (#312) Some time ago the PR was merged with updates to mime-db that returns different type for javascript files. Just reflecting those changes in Readme.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 540e742..71a150f 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ import mime from 'mime/lite'; Get mime type for the given file path or extension. E.g. ```javascript -mime.getType('js'); // ⇨ 'application/javascript' +mime.getType('js'); // ⇨ 'text/javascript' mime.getType('json'); // ⇨ 'application/json' mime.getType('txt'); // ⇨ 'text/plain' @@ -132,7 +132,7 @@ mime.getExtension('text/x-abc') // ⇨ 'abc' ```bash $ mime scripts/jquery.js -application/javascript +text/javascript ``` ### Type -> extension