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

@stdlib/assert-has-node-buffer-support

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/assert-has-node-buffer-support

Detect native Buffer support.

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
153K
decreased by-59.43%
Maintainers
4
Weekly downloads
 
Created

What is @stdlib/assert-has-node-buffer-support?

@stdlib/assert-has-node-buffer-support is a package that provides a utility to check if the current environment supports Node.js Buffer objects. This can be useful for ensuring compatibility and functionality in environments where Buffer support is required.

What are @stdlib/assert-has-node-buffer-support's main functionalities?

Check Buffer Support

This feature allows you to check if the current environment supports Node.js Buffer objects. The function returns a boolean value indicating the presence of Buffer support.

const hasBufferSupport = require('@stdlib/assert-has-node-buffer-support');

if (hasBufferSupport()) {
  console.log('Buffer support is available.');
} else {
  console.log('Buffer support is not available.');
}

Other packages similar to @stdlib/assert-has-node-buffer-support

Keywords

FAQs

Package last updated on 22 Feb 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