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

Readable Names #157

Open
skipjack opened this issue Feb 14, 2019 · 7 comments
Open

Readable Names #157

skipjack opened this issue Feb 14, 2019 · 7 comments

Comments

@skipjack
Copy link

skipjack commented Feb 14, 2019

Apologies if someone already asked this, but I didn't see anything in this repo's issues or in mime-types.

Would you be open to PRs adding the generally accepted "readable name" for each mime-type declaration? By that I mean something similar to the Kind of Document column here, for example:

db.json

{
  "application/javascript": {
    "source": "iana",
    "charset": "UTF-8",
    "compressible": true,
    "extensions": ["js","mjs"],
    "name": "JavaScript"
  },
  "application/vnd.microsoft.portable-executable": {
    "source": "iana",
    "name": "Portable Executable"
  },
  "application/vnd.ms-excel": {
    "source": "iana",
    "compressible": false,
    "extensions": ["xls","xlm","xla","xlc","xlt","xlw"],
    "name": "Microsoft Excel"
  },
}

This package (and the associated mime-types package) are best thing I've found as far as mapping mime types or extensions to one another and I think it would be great if we could add extension => name and mime-type => name to the list of available features.

@dougwilson
Copy link
Contributor

Only if there is an automated method to get these names from somewhere else; I'm not interested in maintaining them by hand or arguing with folks on what their names should be.

@skipjack
Copy link
Author

Fair enough, I'll look into that.

@skipjack
Copy link
Author

This site is pretty comprehensive, what if we scraped it from here:

https://fileinfo.com/filetypes/common

@dougwilson
Copy link
Contributor

Probably not without making some kind of arrangement with the site owners first. From their terms of use (https://fileinfo.com/terms):

You may not use any kind of automatic device or program to access or copy any portion of FileInfo.com.

@skipjack
Copy link
Author

😢 good catch. Ok I'll look into it more.

@skipjack
Copy link
Author

Found a few more, nothing as good as the first one yet though:

And we'd have to make sure scraping is ok with those sites as well too. I also sent a message to the maintainers of the first site to see if they'd be open to sharing.

@skipjack
Copy link
Author

I think I found the most promising candidate yet:

https://github.com/lukaszsliwa/friendly_mime

The license seems like it would allow for our purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants