Galerie und tage

This commit is contained in:
2021-11-23 17:56:26 +01:00
parent ff35366279
commit 5f873bee89
4693 changed files with 149659 additions and 301447 deletions

20
node_modules/buffer-to-vinyl/index.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
'use strict';
var fileType = require('file-type');
var PassThrough = require('readable-stream/passthrough');
var uuid = require('uuid');
var Vinyl = require('vinyl');
module.exports.file = function (buf, name) {
var ext = fileType(buf) ? '.' + fileType(buf).ext : null;
return new Vinyl({
contents: buf,
path: (name || uuid.v4()) + (ext || '')
});
};
module.exports.stream = function (buf, name) {
var stream = new PassThrough({objectMode: true});
stream.end(module.exports.file(buf, name));
return stream;
};