Skip to content

Latest commit

 

History

History

is-darwin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

isDarwin

Boolean indicating if the current process is running on Darwin.

Usage

var isDarwin = require( '@stdlib/utils/is-darwin' );

isDarwin

Boolean indicating if the current process is running on Darwin.

console.log( isDarwin );
// returns <boolean>

Examples

var isDarwin = require( '@stdlib/utils/is-darwin' );

if ( isDarwin ) {
    console.log( 'Running on Darwin...' );
} else {
    console.log( 'Running on %s...', process.platform );
}