1.0.1 • Published 5 months ago

format-checker-js v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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.