format-checker-js
v1.0.1
Published
to validate file format using the file path
Downloads
8
Maintainers
Keywords
Readme
Format Checker
A simple Node.js library to validate file format using the file path.
Installation
npm install format-checker-js
Implementations
const validate = require("format-checker-js");
validate.isImage(filePath)
filePath: A string representing the file path to be validated.
Methods
isImage
isAudio
isVideo
isDocument
isCompression
isExecutable
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.