We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8c2e9 commit 8175a1dCopy full SHA for 8175a1d
1 file changed
README.md
@@ -54,7 +54,7 @@ import mime from 'mime/lite';
54
Get mime type for the given file path or extension. E.g.
55
56
```javascript
57
-mime.getType('js'); // ⇨ 'application/javascript'
+mime.getType('js'); // ⇨ 'text/javascript'
58
mime.getType('json'); // ⇨ 'application/json'
59
60
mime.getType('txt'); // ⇨ 'text/plain'
@@ -132,7 +132,7 @@ mime.getExtension('text/x-abc') // ⇨ 'abc'
132
133
```bash
134
$ mime scripts/jquery.js
135
-application/javascript
+text/javascript
136
```
137
138
### Type -> extension
0 commit comments