Git Product home page Git Product logo

Comments (27)

dougwilson avatar dougwilson commented on May 26, 2024

can you go ahead and publish as 0.0.0 just so we have the npm name claimed? :) i'm going to review it right after i get the destroy fix stuff out

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

nvm, it was already done :D

from mime-db.

rlidwka avatar rlidwka commented on May 26, 2024

there is an issue with tests, because there seem to be nothing to test :D

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

there are tests haha no coverage though

from mime-db.

Fishrock123 avatar Fishrock123 commented on May 26, 2024

Hmmm, these are missing their file types. (does this belong in a new issue? idk haha)

https://github.com/jshttp/mime-db/blob/master/db.json#L6746-L6751

Keep in mind jshttp/mime-types#7 :S

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

jshttp/mime-types#7 should be up to the user-facing lib

from mime-db.

Fishrock123 avatar Fishrock123 commented on May 26, 2024

Ok, well the file extension should still be added to them before 1.0.0 though.

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

i don't think x-shader is a registered type at all

from mime-db.

Fishrock123 avatar Fishrock123 commented on May 26, 2024

Which is why it should be in the extensions: https://github.com/jshttp/mime-db/blob/master/lib/extensions.json

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

well, i mean you have the format <type>/<subtype>; technically any unregistered <type> is invalid, though for <subtype> it's blurry :)

from mime-db.

Fishrock123 avatar Fishrock123 commented on May 26, 2024

(sadly the internet doesn't care if it is invalid)

Yes, it should be application/x-fragment-shader, but it isn't. WebGL applications already use this extensively.

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

right. one thing i think would be nice is if the db entry like listed the source, so you could tell if it was some "official" type or something we added

from mime-db.

Fishrock123 avatar Fishrock123 commented on May 26, 2024

Types we added are in the "extensions" file, so it's build script could do that, yeah.

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

i thought that would be a little too noisy for the user-facing db. users can lookup src/ and lib/ if they want to know how we got particular data.

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

you mean like doing require('mime-db/src/iana')? i don't really like relying on that node module behavior, personally :)

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

oh no i didn't include it in the package. i mean actually going to the repo. why would you need to know this information during runtime?

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

because... it's there :) personally i would want it for trying to strictly validate something by not allowing de-facto crap

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

okay i guess we can add it. i just didn't want the the JSON file to hit 1mb. lol.

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

another issue is that you'd want to know the source for different aspects. the source for the mime type, the source for each extension, the source of whether it's compressible. might get too complicated to do correctly

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

hm, yea. i was only thinking the source of the mime type itself, but i see about the others. we can just ignore it, haha. but i did notice there is no default charset info in there, right?

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

you mean from iana or what? i only grabbed the mime types from iana. there are a lot of other info we can grab from them, but i don't really know what they mean haha

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

what's the other info you can easily grab?

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

here are some parameters:

that's just from the mime types page http://www.iana.org/assignments/media-types/media-types.xhtml. haven't looked anywhere else for more data

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

oh, yea, imo neither of those are useful to us here

from mime-db.

hueniverse avatar hueniverse commented on May 26, 2024

@jonathanong Looking...

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

@Fishrock123 it's not here because you didn't add it to mime-types either: jshttp/mime-types#7. feel free to add it yourself - i know nothing about these types haha

from mime-db.

jonathanong avatar jonathanong commented on May 26, 2024

@dougwilson added .source: iana.

going to close this for now. open new issues for anything else.

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.