node package manager

fangwell-combo

Installation

Install using npm:

$ npm install fangwell-combo

Usage

var express = require('express'),
    app = express(),
    statichandler = require('express-combo');
 
statichandler.userCache = true;
 
app.get('/static', statichandler.folder('public', 'full/path/to/folder/'));
 
app.get('/static', statichandler.map('protected', {
    'something/foo.js": "full/path/to/something/foo.js',
    'bar.js": "full/path/to/something/bar.js'
}));
 
app.get('/static', statichandler.combine({
    comboBase: '/combo~',
    comboSep: '~'
}));