Galerie und tage
This commit is contained in:
16
node_modules/is-tar/index.js
generated
vendored
Normal file
16
node_modules/is-tar/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Check if a Buffer/Uint8Array is a TAR file
|
||||
*
|
||||
* @param {Buffer} buf
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function (buf) {
|
||||
if (!buf || buf.length < 262) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return buf[257] === 117 && buf[258] === 115 && buf[259] === 116 && buf[260] === 97 && buf[261] === 114;
|
||||
};
|
||||
Reference in New Issue
Block a user