index.js
function abort(options = {}) {
    if (process.platform !== 'win32' && process.platform !== 'linux') {
        throw new Error('Unsupported OS (only Windows and Linux are supported)!');
    }

    let cmdarguments = ['shutdown'];
    
    if (process.platform === 'win32') {
        cmdarguments.push('-a'); // abort
    } else {
        // linux
        cmdarguments.push('-c'); // cancel a pending shutdown
    }
    
    executeCmd(cmdarguments, options.debug, options.quitapp);
}
function abort(options = {}) {
    if (process.platform !== 'win32' && process.platform !== 'linux') {
        throw new Error('Unsupported OS (only Windows and Linux are supported)!');
    }

    let cmdarguments = ['shutdown'];
    
    if (process.platform === 'win32') {
        cmdarguments.push('-a'); // abort
    } else {
        // linux
        cmdarguments.push('-c'); // cancel a pending shutdown
    }
    
    executeCmd(cmdarguments, options.debug, options.quitapp);
}
function abort ( options = { } ) { if ( process . platform !== 'win32' && process . platform !== 'linux' ) { throw new Error ( 'Unsupported OS (only Windows and Linux are supported)!' ) ; } let cmdarguments = [ 'shutdown' ] ; if ( process . platform === 'win32' ) { cmdarguments . push ( '-a' ) ; // abort
 } else { // linux
 cmdarguments . push ( '-c' ) ; // cancel a pending shutdown
 } executeCmd ( cmdarguments , options . debug , options . quitapp ) ; }
Aborts current scheduled shutdown
@param {Object} options
Aborts current scheduled shutdown