heya-bundler
v1.1.4
Published
Intelligent I/O for browsers, and its counterpart for node.js.
Downloads
27
Readme
Bundler
Intelligent I/O for browsers: a bundler endpoint for node.js.
What is it?
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.
How to install
npm install --save heya-bundler
Documentation
All documentation can be found in project's wiki.
License
BSD or AFL — your choice
Versions
- 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.