initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

33
node_modules/vinyl-contents/index.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
'use strict';
var Vinyl = require('vinyl');
var bl = require('bl');
function vinylContents(file, cb) {
if (!Vinyl.isVinyl(file)) {
cb(new Error('Must be a Vinyl object'));
return;
}
if (file.isBuffer()) {
cb(null, file.contents);
return;
}
if (file.isStream()) {
var bufferList = bl(function (err, data) {
if (err) {
cb(err);
return;
}
cb(null, data);
});
file.contents.pipe(bufferList);
return;
}
cb();
}
module.exports = vinylContents;