first commit
This commit is contained in:
15
build/node_modules/is-png/index.js
generated
vendored
Normal file
15
build/node_modules/is-png/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
module.exports = function (buf) {
|
||||
if (!buf || buf.length < 8) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return buf[0] === 137 &&
|
||||
buf[1] === 80 &&
|
||||
buf[2] === 78 &&
|
||||
buf[3] === 71 &&
|
||||
buf[4] === 13 &&
|
||||
buf[5] === 10 &&
|
||||
buf[6] === 26 &&
|
||||
buf[7] === 10;
|
||||
};
|
||||
Reference in New Issue
Block a user