gradle-build-action/node_modules/unzipper/lib/Buffer.js
2019-09-21 16:11:55 +02:00

12 lines
No EOL
253 B
JavaScript

var Buffer = require('buffer').Buffer;
// Backwards compatibility for node versions < 8
if (Buffer.from === undefined) {
Buffer.from = function (a, b, c) {
return new Buffer(a, b, c)
};
Buffer.alloc = Buffer.from;
}
module.exports = Buffer;