dist/utils.js
function platform() {
    var cpus = os.cpus();
    var cpu = cpus[0];
    cpu.cores = cpus.length;
    var tmpPlatform = os.platform();
    if (/^win/.test(tmpPlatform))
        tmpPlatform = 'windows';
    else if (tmpPlatform === 'darwin' || tmpPlatform === 'freebsd')
        tmpPlatform = 'mac';
    else if (tmpPlatform === 'linux')
        tmpPlatform = 'linux';
    return {
        platform: tmpPlatform,
        arch: os.arch(),
        release: os.release(),
        hostname: os.hostname(),
        homedir: os.homedir(),
        cpu: cpu
    };
}
function platform() {
    var cpus = os.cpus();
    var cpu = cpus[0];
    cpu.cores = cpus.length;
    var tmpPlatform = os.platform();
    if (/^win/.test(tmpPlatform))
        tmpPlatform = 'windows';
    else if (tmpPlatform === 'darwin' || tmpPlatform === 'freebsd')
        tmpPlatform = 'mac';
    else if (tmpPlatform === 'linux')
        tmpPlatform = 'linux';
    return {
        platform: tmpPlatform,
        arch: os.arch(),
        release: os.release(),
        hostname: os.hostname(),
        homedir: os.homedir(),
        cpu: cpu
    };
}
function platform ( ) { var cpus = os . cpus ( ) ; var cpu = cpus [ 0 ] ; cpu . cores = cpus . length ; var tmpPlatform = os . platform ( ) ; if ( / ^win / . test ( tmpPlatform ) ) tmpPlatform = 'windows' ; else if ( tmpPlatform === 'darwin' || tmpPlatform === 'freebsd' ) tmpPlatform = 'mac' ; else if ( tmpPlatform === 'linux' ) tmpPlatform = 'linux' ; return { platform : tmpPlatform , arch : os . arch ( ) , release : os . release ( ) , hostname : os . hostname ( ) , homedir : os . homedir ( ) , cpu : cpu } ; }
Platform
Gets information and paths for the current platform.
Platform Gets information and paths for the current platform .