first commit
This commit is contained in:
16
build/node_modules/is-bzip2/index.js
generated
vendored
Normal file
16
build/node_modules/is-bzip2/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Check if a Buffer/Uint8Array is a BZIP2 file
|
||||
*
|
||||
* @param {Buffer} buf
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function (buf) {
|
||||
if (!buf || buf.length < 3) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return buf[0] === 66 && buf[1] === 90 && buf[2] === 104;
|
||||
};
|
||||
Reference in New Issue
Block a user