A Hapi.js plugin that automatically appends a cache-busting query parameter (?v=version) to asset URLs (CSS, JS, images) in view templates. Version 0.4.0 is the latest stable release. It reads the version from package.json or accepts a custom version number. Designed for Hapi.js applications using Handlebars or Jade templates. Differentiator: simple integration with no build steps, relies on package.json version.
npm install hapi-cache-busterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers the cache buster plugin with Hapi.js, using a custom version. Demonstrates required plugin registration pattern.
Pass version option manually or set cwd before starting Node.
Update to latest version or use callback registration for older Hapi.
Ensure template engine renderer escapes the query string correctly.
Pass version option explicitly or run Node from the project root directory.
Ensure plugin is registered with server.register({ plugin: HapiCacheBuster, options: {} }) before template rendering.No dependency data recorded yet.