Initial commit
[yaffs-website] / node_modules / is-png / index.js
1 'use strict';
2 module.exports = function (buf) {
3         if (!buf || buf.length < 4) {
4                 return false;
5         }
6
7         return buf[0] === 137 &&
8                 buf[1] === 80 &&
9                 buf[2] === 78 &&
10                 buf[3] === 71;
11 };