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

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

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.0.1
Version published
Weekly downloads
0
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

FAQs

Package last updated on 14 Jun 2021

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