Can't resolve type of eot file
- Dominant language
- TypeScript
- Stars
- 346
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
During my development, I encountered a problem on mime type resolution for the extension **eot**. You can reproduce with these code.
```js
const { lookup } = require("mrmime");
console.log(lookup("fonts/glyphicons-halflings-regular.eot")); // print undefined
console.log(lookup("fonts/glyphicons-halflings-regular.ttf")); // print font/ttf
```
Just to be sure I check the mime-db repository to be sure that the problem wasn't there, but apparently there is a reference to this mime type [here](https://github.com/jshttp/mime-db/blob/a76e5a824c228e2e58363c9404e42a54ee1d142f/db.json#L3951)
.
That is probably a misuage or misunderstanding of my own. Thank you for you work and reading.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the two lookup calls from the issue and inspect how mrmime maps extensions, comparing the eot entry with the referenced mime-db record. Done means lookup("fonts/glyphicons-halflings-regular.eot") returns the expected MIME type, with a regression check covering the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100