Skip to content

express dependency requirement #17

Description

@arizvisa

By including express in the list of dependencies in package.json, it makes express a required dependency of the package. That means that the checks in lib/errors.js will always load the errorHandler middleware despite the attempts to only provide the feature if the express module is available.

I really like the feature of express being conditionally loaded as then this library can be used outside of node.js too. Was it intended to make express a requirement of this package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions