Git Product home page Git Product logo

Comments (9)

Fishrock123 avatar Fishrock123 commented on May 26, 2024

@thany What exactly would this be used for?

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

@Fishrock123 I can see the use-case, but the real question is, where would this information come from? Is there a list somewhere?

from mime-db.

Fishrock123 avatar Fishrock123 commented on May 26, 2024

Is there a list somewhere?

Is there ever?

There isn't a conclusive list for anything except the mime type themselves afaik.

This, like compression, would probably take research by hand to be conclusive.

from mime-db.

thany avatar thany commented on May 26, 2024

Windows has PerceivedType built into its registry for most (every?) registered filetype/mimetype. That might be a start.

Is there a list somewhere?

This could become the list :)

from mime-db.

Fishrock123 avatar Fishrock123 commented on May 26, 2024

Oh hmm, I'll leave that to @dougwilson since he does more windows stuff.

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

we could make this a separate lib. seems like most of the types can be inferred from the first part of the mime type. then you'll have look up for the other types like "document" and "gamemedia". could probably just be rules like regexps

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

yea, i think this seems like a different lib, but idk yet. i'll look into what that windows api is doing to get this data to say for sure.

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

going to put this as "maybe in v1+"

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

So I looked really hard into this, and though it sounds nice to have, the way it actually works in Windows is part of the type registration (which lives in the registry). Applications can alter these types at will and there is pretty much no central place for these things to exist. It basically seems like making this would be completely hand-rolled, which seems like a large task.

It is certainly possible that we can write a script that will simply walk the registry of the current user and store all those perceived types, though it will still end up being a manually-curated list of them :)

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.