Comments (27)
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.
nvm, it was already done :D
from mime-db.
there is an issue with tests, because there seem to be nothing to test :D
from mime-db.
there are tests haha no coverage though
from mime-db.
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.
jshttp/mime-types#7 should be up to the user-facing lib
from mime-db.
Ok, well the file extension should still be added to them before 1.0.0 though.
from mime-db.
i don't think x-shader
is a registered type at all
from mime-db.
Which is why it should be in the extensions: https://github.com/jshttp/mime-db/blob/master/lib/extensions.json
from mime-db.
well, i mean you have the format <type>/<subtype>
; technically any unregistered <type>
is invalid, though for <subtype>
it's blurry :)
from mime-db.
(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.
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.
Types we added are in the "extensions" file, so it's build script could do that, yeah.
from mime-db.
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.
you mean like doing require('mime-db/src/iana')
? i don't really like relying on that node module behavior, personally :)
from mime-db.
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.
because... it's there :) personally i would want it for trying to strictly validate something by not allowing de-facto crap
from mime-db.
okay i guess we can add it. i just didn't want the the JSON file to hit 1mb. lol.
from mime-db.
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.
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.
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.
what's the other info you can easily grab?
from mime-db.
here are some parameters:
- http://www.iana.org/assignments/media-types-parameters/media-types-parameters.xhtml
- http://www.iana.org/assignments/media-type-sub-parameters/media-type-sub-parameters.xhtml
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.
oh, yea, imo neither of those are useful to us here
from mime-db.
@jonathanong Looking...
from mime-db.
@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.
@dougwilson added .source: iana
.
going to close this for now. open new issues for anything else.
from mime-db.
Related Issues (20)
- Add extensions for audio/amr type
- Add jsm extension for application/javascript HOT 3
- Missing mime type image/avif-sequence HOT 3
- '.zip' file has a 'application/x-zip-compressed' in Windows. HOT 2
- What are the allowed characters for an extension? HOT 6
- .asc extension maps to application/pgp-signature instead of application/pgp-keys HOT 1
- TypeScript file extensions map to incorrect file types HOT 1
- Re-raising the now updated JS mime-type issue (from #194) HOT 7
- Add `.json` extension for `application/jf2feed+json` HOT 2
- `.mov` vs `.qt` HOT 9
- Add .yamlld extension HOT 1
- YAML is application/yaml HOT 3
- Add image/jpeg for .jfif file extension
- ts extension incorrectly mapped to video/mp2t ? HOT 4
- Update existing dcm format HOT 1
- Minify `db.json` file HOT 5
- Missing extensions list for model/step HOT 2
- YAML missing some types HOT 5
- text/calender
- Broken tests for Node@8 and Node@9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mime-db.