Skip to content

Commit 8175a1d

Browse files
authored
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
1 parent 8c8c2e9 commit 8175a1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import mime from 'mime/lite';
5454
Get mime type for the given file path or extension. E.g.
5555

5656
```javascript
57-
mime.getType('js'); // ⇨ 'application/javascript'
57+
mime.getType('js'); // ⇨ 'text/javascript'
5858
mime.getType('json'); // ⇨ 'application/json'
5959

6060
mime.getType('txt'); // ⇨ 'text/plain'
@@ -132,7 +132,7 @@ mime.getExtension('text/x-abc') // ⇨ 'abc'
132132

133133
```bash
134134
$ mime scripts/jquery.js
135-
application/javascript
135+
text/javascript
136136
```
137137

138138
### Type -> extension

0 commit comments

Comments
 (0)