first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

21
build/node_modules/parse-png/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
'use strict';
const PNG = require('pngjs').PNG;
module.exports = (buf, opts) => {
if (!Buffer.isBuffer(buf)) {
return Promise.reject(new TypeError('Expected a buffer'));
}
return new Promise((resolve, reject) => {
let png = new PNG(opts);
png.on('metadata', data => {
png = Object.assign(png, data);
});
png.on('error', reject);
png.on('parsed', () => resolve(png));
png.end(buf);
});
};