You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eugene Lazutkin edited this page Nov 7, 2019
·
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:
varbundler=require('heya-bundler');varexpress=require('express');varapp=express();varrouter=express.Router();router.put('/',bundler({isUrlAcceptable: function(url){// accept only local absolute URLsreturn/^\/\w/.test(url);}}));app.use('/bundle',router);// the rest of the setup