{"library":"resource-bundler","title":"resource-bundler","description":"A simple asset bundler for Express applications, inspired by the .NET MVC 4 bundler. It combines multiple CSS or JavaScript files into single bundles with optional minification via custom transformers. Version 0.0.8 is the latest, with low release cadence (no recent updates). Key differentiators: lightweight, Express integration, extensible via custom transformers. Not actively maintained; may have compatibility issues with modern Node.js.","language":"javascript","status":"abandoned","last_verified":"Sat Apr 25","install":{"commands":["npm install resource-bundler"],"cli":null},"imports":["import bundler from 'resource-bundler'","import { Bundle } from 'resource-bundler'","import { StyleBundle } from 'resource-bundler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import express from 'express';\nimport bundler from 'resource-bundler';\nimport { StyleBundle, ScriptBundle } from 'resource-bundler';\n\nconst app = express();\nconst bundle = bundler(app, { production: process.env.NODE_ENV === 'production' });\n\nbundle.add(new StyleBundle('css')\n  .withFiles('public/css/reset.css', 'public/css/main.css'));\n\nbundle.add(new ScriptBundle('js')\n  .withFiles('public/js/lib/jquery.js', 'public/js/app.js'));\n\napp.get('/', (req, res) => {\n  res.send(`\n    <link href=\"${bundle.resolve('css')}\" rel=\"stylesheet\">\n    <script src=\"${bundle.resolve('js')}\"></script>\n  `);\n});\n\napp.listen(3000);","lang":"javascript","description":"This shows how to set up Express with resource-bundler, create style and script bundles, and serve them on a route.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}