# Platform > Platform on which the current process is running.
## Usage ```javascript var PLATFORM = require( '@stdlib/os/platform' ); ``` #### PLATFORM [Platform][process-platform] on which the current process is running. ```javascript console.log( PLATFORM ); // => ```
## Examples ```javascript var PLATFORM = require( '@stdlib/os/platform' ); if ( PLATFORM === 'win32' ) { console.log( 'Running on a PC...' ); } else if ( PLATFORM === 'darwin' ) { console.log( 'Running on a Mac...' ); } else { console.log( 'Running on something else...' ); } ```
* * *
## CLI
### Usage ```text Usage: platform [options] Options: -h, --help Print this message. -V, --version Print the package version. ```
### Examples ```bash $ platform ```