png-or-not
Version:
A lightweight utility to check whether a given file or buffer is a valid PNG image by verifying its signature bytes(magic number). Perfect for validating image uploads or streams before processing.
39 lines (38 loc) • 937 B
JSON
{
"name": "png-or-not",
"version": "1.0.0",
"description": "A lightweight utility to check whether a given file or buffer is a valid PNG image by verifying its signature bytes(magic number). Perfect for validating image uploads or streams before processing.",
"keywords": [
"png",
"image",
"file-type",
"buffer",
"validation",
"image-validation",
"check",
"png",
"file-signature",
"png-or-not",
"image",
"file",
"check"
],
"homepage": "https://github.com/PatelAbhay550/png-or-not#readme",
"bugs": {
"url": "https://github.com/PatelAbhay550/png-or-not/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/PatelAbhay550/png-or-not.git"
},
"license": "MIT",
"author": "Abhay Patel",
"type": "commonjs",
"main": "index.js",
"scripts": {
"test": "node test/test.js"
},
"dependencies": {
"read-chunk": "^5.0.0"
}
}