-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Bring back .load()
possibly as a new npm module
#210
Comments
I'm afraid If you want to create a separate module to load Apache |
@BigBlueHat that works for me, if you want to be the all new maintainer of a apache mime.types loader package, it does look like it's relatively straightforward. |
@broofa thanks for the direction |
According to #163 the
.load()
API was removed to avoid filesystem related dependencies (which makes good sense)!However, that removal is causing some pain in https://github.com/jfhbrook/node-ecstatic and (relatedly) https://github.com/indexzero/http-server both of which have provided loading custom mime type databases from existing formats via this
.load()
feature.Consequently, both projects are stuck with an earlier
node-mime
module until there's a path forward: either a new module for doing the loading or an optional feature here (or something).Regardless, it'd be great to have this back in some form!
Thanks!
🎩
/cc @jfhbrook
The text was updated successfully, but these errors were encountered: