hasAtobSupport
Detect native
atob
support.
Usage
var hasAtobSupport = require( '@stdlib/assert/has-atob-support' );
hasAtobSupport()
Detects if a runtime environment supports atob
.
var bool = hasAtobSupport();
// returns <boolean>
Examples
var hasAtobSupport = require( '@stdlib/assert/has-atob-support' );
var bool = hasAtobSupport();
if ( bool ) {
console.log( 'Environment has atob support.' );
} else {
console.log( 'Environment lacks atob support.' );
}
CLI
Usage
Usage: has-atob-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Examples
$ has-atob-support
<boolean>