🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

is-binary-path

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-binary-path

Check if a file path is a binary file

3.0.0
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created

What is is-binary-path?

The is-binary-path npm package is used to determine if a given file path is a binary file or not. It checks the file extension against a list of known binary file types.

What are is-binary-path's main functionalities?

Check if a file path is a binary file

This feature allows you to check if a file path points to a binary file by using the file extension. It returns true if the file is a binary file, otherwise false.

const isBinaryPath = require('is-binary-path');

console.log(isBinaryPath('image.png')); // true
console.log(isBinaryPath('document.txt')); // false

Other packages similar to is-binary-path

Keywords

binary

FAQs

Package last updated on 30 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts