format-checker-js

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i format-checker-js

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

7.19 kB

Total Files

10

Last publish

Collaborators

  • arul2552