Skip to content

Latest commit

 

History

History

is-windows

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

isWindows

Boolean indicating if the current process is running on Windows.

Usage

var isWindows = require( '@stdlib/utils/is-windows' );

isWindows

Boolean indicating if the current process is running on Windows.

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

Examples

var isWindows = require( '@stdlib/utils/is-windows' );

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