Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binary-extensions

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary-extensions

List of binary file extensions

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
45M
decreased by-1.43%
Maintainers
2
Weekly downloads
 
Created

What is binary-extensions?

The binary-extensions npm package provides a list of binary file extensions. This package can be used to check if a file extension is generally considered to be binary. It is useful when handling file uploads, file processing, or any other file-related operations where knowing if a file is binary or text can be crucial.

What are binary-extensions's main functionalities?

Check if an extension is binary

This code checks if the 'png' extension is included in the list of binary extensions, indicating that files with this extension are binary.

const binaryExtensions = require('binary-extensions');

if (binaryExtensions.includes('png')) {
  console.log('The file extension is binary.');
} else {
  console.log('The file extension is not binary.');
}

Other packages similar to binary-extensions

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc