Operating system CPU architecture.
var ARCH = require( '@stdlib/os/arch' );
Operating system CPU architecture.
console.log( ARCH );
// => <string>
var ARCH = require( '@stdlib/os/arch' );
if ( ARCH === 'arm' || ARCH === 'arm64' ) {
console.log( 'Running on ARM...' );
} else {
console.log( 'Running on something else...' );
}
Usage: arch [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ arch
@stdlib/os/platform
: platform on which the current process is running.