isimagevalidator
v1.1.2
Published
to validate it's an image using the file path
Downloads
40
Maintainers
Readme
Image Validator Library
A simple Node.js library for validating image files based on their extensions.
Installation
npm install isimagevalidator
Implementations
const validate = require("isimagevalidator");
validate.isImage(filePath)
filePath: A string representing the file path to be validated.
Note:
Please ensure proper usage of file paths by avoiding spaces and ensuring there are no spaces in between file names. It is recommended to sanitize file paths for optimal functionality.