index.js
function setTimer(timervalue) {
    let cmdarguments = [];
    
    if (process.platform === 'linux' ) {
        if (timervalue) {
            cmdarguments.push(timervalue.toString());
        } else {
            cmdarguments.push('now');
        }
    }

    if (process.platform === 'darwin') {
        if (timervalue) {
			let timeinminutes = Math.round(Number(timervalue) / 60);
			if (timeinminutes === 0) {
				timeinminutes = 1; // min 1 minute
			}
            cmdarguments.push('-t ' + timeinminutes.toString());
        } else {
            cmdarguments.push('now');
        }
    }

    if (process.platform === 'win32') {
        if (timervalue) {
            cmdarguments.push('-t ' + timervalue.toString());
        } else {
            cmdarguments.push('-t 0'); // set to 0 because default is 20 seconds
        }
    }

    return cmdarguments;
}
function setTimer(timervalue) {
    let cmdarguments = [];
    
    if (process.platform === 'linux' ) {
        if (timervalue) {
            cmdarguments.push(timervalue.toString());
        } else {
            cmdarguments.push('now');
        }
    }

    if (process.platform === 'darwin') {
        if (timervalue) {
			let timeinminutes = Math.round(Number(timervalue) / 60);
			if (timeinminutes === 0) {
				timeinminutes = 1; // min 1 minute
			}
            cmdarguments.push('-t ' + timeinminutes.toString());
        } else {
            cmdarguments.push('now');
        }
    }

    if (process.platform === 'win32') {
        if (timervalue) {
            cmdarguments.push('-t ' + timervalue.toString());
        } else {
            cmdarguments.push('-t 0'); // set to 0 because default is 20 seconds
        }
    }

    return cmdarguments;
}
function setTimer ( timervalue ) { let cmdarguments = [ ] ; if ( process . platform === 'linux' ) { if ( timervalue ) { cmdarguments . push ( timervalue . toString ( ) ) ; } else { cmdarguments . push ( 'now' ) ; } } if ( process . platform === 'darwin' ) { if ( timervalue ) { let timeinminutes = Math . round ( Number ( timervalue ) / 60 ) ; if ( timeinminutes === 0 ) { timeinminutes = 1 ; // min 1 minute
 } cmdarguments . push ( '-t ' + timeinminutes . toString ( ) ) ; } else { cmdarguments . push ( 'now' ) ; } } if ( process . platform === 'win32' ) { if ( timervalue ) { cmdarguments . push ( '-t ' + timervalue . toString ( ) ) ; } else { cmdarguments . push ( '-t 0' ) ; // set to 0 because default is 20 seconds
 } } return cmdarguments ; }
set current time argument
@param {Number} timervalue value in seconds to delay, false to execute now
set current time argument