extension-cord

1.1.0 • Public • Published

Extension Cord

Overview

Extension cord is an Express middleware step for proxying requests for static files to another location.

Usage

var express = require('express'); var app = express();

app.use(require('extension-cord')({ "target": { "protocol" : "http", "hostname" : "localhost", "port": "8000" }, "regex": "jpeg|gif|png|jpg|js|css|ico|woff|svg|ttf|json|map" }));

CHANGELOG

1.0

Initial release with basic functionality.

1.1

Added all the events that are supported: onOpen, onClose, onError, onProxyReq, onProxyRes.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i extension-cord

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • iamdavidjackson