Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mime-score to resolve extension conflicts. #116

Open
broofa opened this issue Dec 11, 2023 · 0 comments
Open

Use mime-score to resolve extension conflicts. #116

broofa opened this issue Dec 11, 2023 · 0 comments

Comments

@broofa
Copy link
Member

broofa commented Dec 11, 2023

[See #42 for long-ago discussion of this idea.]

As noted in that old PR, I created the mime-score module to encapsulate the logic used by mime to resolve extension conflicts in mime types. I think it would be helpful to users of mime and mime-types if both libs used the same logic.

I'll put up a PR for that (again), but the main issue with that previous PR was that mime-score didn't support node@0.6. I suspect that's no longer a concern? It'd be nice to not have to worry about that, and to be able to develop using reasonably modern language features. See #115 for further discussion there.

[Edit to add: The current support matrix is maybe even more relevent than I thought. 'Just realized that I ported mime-score to typescript last year, and it's currently built for ESNext. So, it works on node@14 but breaks on node@12.]

broofa added a commit to broofa/mime-types that referenced this issue Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant