Skip to content

Commit

Permalink
Update README.md (#312)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Baltazore authored May 3, 2024
1 parent 8c8c2e9 commit 8175a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -132,7 +132,7 @@ mime.getExtension('text/x-abc') // ⇨ 'abc'

```bash
$ mime scripts/jquery.js
application/javascript
text/javascript
```

### Type -> extension
Expand Down

0 comments on commit 8175a1d

Please sign in to comment.