connect-npm

Serve modules directly from your Node.js require path to the browser.

npm install connect-npm
8 downloads in the last month

Connect NPM Build Status

Serve modules directly from your Node.js require path to the browser.

Usage

var connect = require('connect');

var app = connect()
  .use(connect.logger('dev'))
  .use(connect.static('public'))
  .use(require('connect-npm')({
    modules: [ "reactor", "stencil", "stencil/resolver" ],
    format: "/npm/%s.js"
  });
  .listen(7654);
npm loves you