@stdlib/assert-has-btoa-support
v0.1.1
Published
Detect native btoa support.
Readme
hasBtoaSupport
Detect native
btoasupport.
Installation
npm install @stdlib/assert-has-btoa-supportUsage
var hasBtoaSupport = require( '@stdlib/assert-has-btoa-support' );hasBtoaSupport()
Detects if a runtime environment supports btoa.
var bool = hasBtoaSupport();
// returns <boolean>Examples
var hasBtoaSupport = require( '@stdlib/assert-has-btoa-support' );
var bool = hasBtoaSupport();
if ( bool ) {
console.log( 'Environment has btoa support.' );
} else {
console.log( 'Environment lacks btoa support.' );
}See Also
@stdlib/assert-has-btoa-support-cli: CLI package for use as a command-line utility.@stdlib/assert-has-atob-support: detect native atob support.
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
