Intelligent I/O for browsers: a bundler endpoint for node.js.
A flexible customizable endpoint for Express on node.js that implements heya-io's bundling protocol. It is a reference implementation for its bundle()
facility.
Example of use:
var bundler = require('heya-bundler');
var express = require('express');
var app = express();
var router = express.Router();
router.put('/', bundler({
isUrlAcceptable: function (url) {
// accept only local absolute URLs
return /^\/\w/.test(url);
}
}));
app.use('/bundle', router);
// the rest of the setup
All supported parameters can be found in Instrumentation.
npm install --save heya-bundler
All documentation can be found in project's wiki.
BSD or AFL — your choice
- 1.1.4 — Refreshed dependencies.
- 1.1.3 — Refreshed dependencies.
- 1.1.2 — Added blacklisted headers that should not be copied by default.
- 1.1.1 — Refreshed dependencies.
- 1.1.0 — Switched from
request
toheya-io-node
! - 1.0.7 — Refreshed dependencies.
- 1.0.6 — Corrected links. No code change.
- 1.0.5 — Switched from 500 to 400 to indicate bad requests, checked JSON and request for exceptions.
- 1.0.4 — Added a way to customize logging.
- 1.0.3 — More accurate calculations of spent time and better error reports.
- 1.0.2 — Minor documentation update.
- 1.0.1 — Sorted out dependencies.
- 1.0.0 — Starts the new generation.