Registry / devops / gulp-buster

gulp-buster

JSON →
library1.1.0jsnpmunverified

gulp-buster (v1.1.0) is a Gulp plugin that generates cache-busting hashes (fingerprints) for static assets. It computes MD5-like hashes of file contents and writes them to a JSON manifest (busters.json). Unlike gulp-rev, it does not rename files but instead produces a mapping for URL rewriting. The plugin integrates with gulp-watch for real-time updates. Releases are infrequent; latest stable is 1.1.0 (2015). Requires Node >= 0.10.

npm install gulp-buster
INSTALL
IMPORT
SIG · GULP-BUSTER
G
gulp-buster
devopsjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bust
import bust from 'gulp-buster'
const bust = require('gulp-buster')
gulp-buster exports a single function. Both ESM and CommonJS work.
bust
const bust = require('gulp-buster')
CommonJS require is common for Gulp plugins.
default export
var bust = require('gulp-buster')
require('gulp-buster').default
No default property; the function is exported directly.

Shows how to pipe assets through gulp-buster to generate a busters.json manifest.

const gulp = require('gulp'); const bust = require('gulp-buster'); gulp.task('bust', function() { return gulp.src('assets/*.css') .pipe(bust({ path: 'busters.json', fileName: 'busters.json', relativePath: true })) .pipe(gulp.dest('dist')); });
Debug
Known issues
gotchaOptions path and fileName both default to busters.json but confusion may occur.
fix
Use only fileName option; path is legacy.
affects: >=1.0.0
gotchaHashes are computed synchronously; large files may block the event loop.
fix
Consider using gulp-rev for async hashing or limit file sizes.
affects: >=0.1.0
deprecatedgulp-buster has not been updated since 2015 and may not work with modern Gulp 4.
fix
Migrate to gulp-rev or gulp-hash.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'gulp-buster'
Module not installed or npm install missing.
fix
Run npm install --save-dev gulp-buster
TypeError: bust is not a function
Wrong import style: using import bust from 'gulp-buster' with ESM but module is CJS.
fix
Use const bust = require('gulp-buster');
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
gulp-buster — npm install gulp-buster · libregistry