Skip to content
Eugene Lazutkin edited this page May 24, 2016 · 7 revisions

Bundler is a reference implementation of heya-io's bundling protocol. It is a customizable endpoint for Express on node.js, with tightly controlled security, and flexible options.

Example of use:

var bundler = require('heya-bundler');
var express = require('express');

var app = express();
var router = express.Router();

router.put('/', instrumentBundle({
  isUrlAcceptable: function (url) {
    // accept only local absolute URLs
    return /^\/\w/.test(url);
  }
}));

app.use('/bundle', router);

// the rest of the setup

All parameters can be found in Instrumentation.

Clone this wiki locally