Neutron Polarization Manipulator

    sidproxy

    1.0.6 • Public • Published

    sidproxy

    Build Status

    Simple Development Proxy and Http console

    Getting Started

    1. Installation

    npm install sidproxy

    2. Examples

     
    // As Connect Middleware
    var middleware = function (connect) {
        return [
            require('sidproxy')(true)
                .resolveProxy([
                    {
                        name: 'Server 1',
                        path: 'client/api/path/server1/',
                        host: 'http://server1/'
                    },
                    {
                        name: 'Server 2',
                        path: 'client/api/path/server2/',
                        host: 'http://server2/'
                    }
                ]),
            connect.static(require('path').resolve('.'))
        ];
    }
     

    Install

    npm i sidproxy

    DownloadsWeekly Downloads

    10

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • qrb