Nodeschool Public Materials
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    fangwell-combopublic

    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: '~'
    }));

    install

    npm i fangwell-combo

    Downloadsweekly downloads

    2

    version

    0.0.2

    license

    BSD

    last publish

    collaborators

    • avatar