Git Product home page Git Product logo

Comments (9)

dougwilson avatar dougwilson commented on June 16, 2024

There is no significance to the order of extensions in the array. For this particular example, they are simply listed in the same order as they are in the Apache source they come from (https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types).

from mime-db.

shirotech avatar shirotech commented on June 16, 2024

@dougwilson thank you for the response, however there are projects that uses the array and takes the first element and calls it a day, they won't change, this won't change. So I guess will need to raise this with apache then?

from mime-db.

dougwilson avatar dougwilson commented on June 16, 2024

I guess? I mean, I can modify the code here to sort them alphabetically, but who knows what collateral damage that would cause if what you assert is true...

from mime-db.

shirotech avatar shirotech commented on June 16, 2024

@dougwilson cool, would you be willing to merge a PR with a single entry change? Will there be a build process that gets overwritten?

I also don't think a batch process to make everything alphabetical like that is a good idea.

from mime-db.

dougwilson avatar dougwilson commented on June 16, 2024

The db.json file is not hand-curated: it is a build process that pulls the data from the three sources listed at the top of the readme and merges the data into that file. The goal of the project is zero hand-curation, as it would be too immense, and not something I signed up for :) Whatever change to the build project needs to just be a generic change, which is why I suggested alpha-ordering extensions array.

from mime-db.

shirotech avatar shirotech commented on June 16, 2024

as it would be too immense, and not something I signed up for

As it is an open-source project, the community, also the users of this project can help out also :)

from mime-db.

dougwilson avatar dougwilson commented on June 16, 2024

I understand that, and appreciate the offer, but I have been going this for 10 years. I cannot even count on the number os similar offers and they always drop off... I suggest perhaps making a project that does that and publishing to npm? I can even point folks there who are looking for hand-curated lists and you're welcome to deal with the endless issues and arguments that come with that (which is the main reason I won't go back to doing that again here).

from mime-db.

shirotech avatar shirotech commented on June 16, 2024

Sounds like it will be rough to have a fork, just only really wanted to resolve a package from a 3rd party. Anyways for those who are looking at a similar issue, can use a feature called patch fromyarn https://yarnpkg.com/cli/patch and pnpm https://pnpm.io/cli/patch

from mime-db.

dougwilson avatar dougwilson commented on June 16, 2024

Well, it just depends on what you want to do. For example, you don't need to fork pre-se. Perhaps a file in the repo with the list of overrides, similar to the patch idea above and then it either uses this module as a dependency or uses a build process to pull the data, merges them together and that's the export. Of course, anything you don't adjust by hand is suspectable to change suddenly, so I can't image it truly being useful without someone going through every single entry with more than one extension and researching which one is the "primary" one...

from mime-db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.