mime-types
mime-types copied to clipboard
The ultimate javascript content-type utility.
[String.prototype.substr()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) is deprecated so we replace it with [String.prototype.slice()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) which works similarily but isn't deprecated. .substr() probably isn't going away anytime soon but the change is trivial so it doesn't...
I'd love to use this package in the browser, but currently it uses Node-style CommonJS and also requires the `path` module for `path.extname()`. Would it be possible to support ESM...
This is to address https://github.com/jshttp/mime-types/issues/23. The goal of this PR is add a function for looking up all MIME types associated to a file extension. This would be useful for...
Added a new method called 'allExtensions' to get all the extensions matching a given mime-type.
I've pulled the logic I put together for resolving extension conflicts in `[email protected]` out into it's own module. I'm using this in the latest 1.x version of `mime` as well...
This relates to: koajs/koa#617. As an extension can correspond to multiple mime-types, wouldn't it be correct to return an array of all matches and let libraries handle that? Perhaps a...
Related to https://github.com/broofa/node-mime/issues/162 The v2 unit test I have in node-uuid turned up some mappings that seem "questionable" in `mime-types`. I believe these are a result of the more nuanced...
# Main Changes This pipeline will proactively report the status of the project (every day and when a push is done to `master` branch) including critical fields (`CI-Tests`, `Contributors`, `Dependency-Update-Tool`,...