Comparing version 0.0.2 to 0.0.3
10
index.js
@@ -5,11 +5,3 @@ 'use strict'; | ||
// gimp xcf files start with "gimp xcf" | ||
return buf[0] === 103 && | ||
buf[1] === 105 && | ||
buf[2] === 109 && | ||
buf[3] === 112 && | ||
buf[4] === 32 && | ||
buf[5] === 120 && | ||
buf[6] === 99 && | ||
buf[7] === 102; | ||
return /^gimp xcf/.test(buf); | ||
}; |
{ | ||
"name": "is-xcf", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Check if a buffer/array is an XCF image", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1833
5
1