Connect Modrewrite

screenshot of Connect Modrewrite

Modrewrite middleware for connect/express

Overview:

connect-modrewrite is a tool that adds modrewrite functionality to connect/express servers. It allows users to configure rewrite rules using regex strings for matching paths and replacement strings for those paths. Flags can be added to the rules to define specific behaviors like redirecting requests or changing content-types.

Features:

  • Rewrite Rules: Define rewrite rules using regex strings and replacement strings.
  • Inverted URL Matching: Use '!' for inverted URL matching.
  • Defined Params: Wrap defined params with '()', access them with '$n'.
  • Flags: Various flags available like [P] for proxying requests, [R] for redirecting, [F] for forbidden response, etc.

Summary:

connect-modrewrite is a useful tool for adding modrewrite functionality to connect/express servers. It allows for flexible configuration of rewrite rules using regex and replacement strings, along with various flags to control behavior. With features like inverted URL matching, defined params, and different flags for specific actions, it provides a comprehensive solution for URL rewriting in server applications.

grunt
Grunt

Grunt is a popular JavaScript task runner that automates repetitive tasks like minification, compilation, and testing, allowing developers to focus on writing code.