-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Make types.json loading optional? #129
Comments
Hello again. I would really like to use this library without loading the default database. Here is what I came up with: https://github.com/Hypercubed/node-mime . With this fork I can do:
The API is not not compatible and should likely be a separate npm module. I'd like to suggest that you or I publish a separate module (published to npm as
I'm willing to do this through PRs. |
Moving to #161 |
I am using this module in a web application installed and bundled using JSPM. It works fine from what I can tell. However, I am actually only using a subset of the mime types. I can use
mime.define
but becausemime.js
requirestypes.json
the entire file is bundled anyway when I build the application. This is probably not an issue sincetypes.json
is fairly small but for an optimal web app I see three options:types.json
at all, usemime.define
in my app.types.json
file.types.json
only when needed.Thoughts?
The text was updated successfully, but these errors were encountered: