mime
mime copied to clipboard
Mime types for JavaScript
Express is installing @type/mime for some reason. Then I cannot use this package because I use version 3 and types from version 1. I cannot install the newest @type/mime because...
* [x] Remove Travis CI * [x] Use GH Actions for CI * [ ] Support ESM imports (#241, #233) * [ ] Convert codebase to Typescript / ESM *...
Added a check for possibly inherited extension functions added to the Object prototype that breaks the library functionality. `for ... in` should allows used alongside `hasOwnProperty()`. https://discourse.nodered.org/t/crashes-after-adding-an-external-module/14891/2 https://github.com/googleapis/google-api-nodejs-client/issues/2070
### If you have an issue with a specific extension or type Locate the definition for your extension/type in the [db.json file](https://github.com/jshttp/mime-db/blob/master/db.json) in the `mime-db` project. Does it look right?...
### If you have an issue with a specific extension or type Locate the definition for your extension/type in the [db.json file](https://github.com/jshttp/mime-db/blob/master/db.json) in the `mime-db` project. Does it look right?...
I had an issue in a custom JS env (jest for testing) that apparently doesn't support "RegExp.$1" As stated here : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/n > This feature is non-standard and is not...
### If you have an issue with a specific extension or type Locate the definition for your extension/type in the [db.json file](https://github.com/jshttp/mime-db/blob/master/db.json) in the `mime-db` project. Does it look right?...
With a dependency tree (showing `mime` only) like this: ``` ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] deduped ├─┬ [email protected] │...
Some content type have multiple associated extensions. For example: https://github.com/jshttp/mime-db/blob/master/db.json#L7571 Calling `getExtension` should return `['html', 'htm', 'shtml']` instead, it returns only 'html'. Therefore, it would make sense that this method...
Angular 10 now gives a warning to users who are using this library due to it being a CommonJS package. ``` WARNING in mime.service.ts depends on mime/lite. CommonJS or AMD...