index.js
/**
 * Common Method which acts as a template for captureAllWindows, captureFullScreen, captureTaskBar, captureWorkingArea functions
 *
 * @private
 * @function
 * @returns {object} Returns JS Object which is parsed from executable's standard output JSON String.
 */
Common Method which acts as a template for captureAllWindows, captureFullScreen, captureTaskBar, captureWorkingArea functions
@private
@function
@returns {object} Returns JS Object which is parsed from executable's standard output JSON String.
Common Method which acts as a template for captureAllWindows captureFullScreen captureTaskBar captureWorkingArea functions @private @function @returns { object } Returns JS Object which is parsed from executable ' s standard output JSON String .
function commonMethod(options, programName) {
    if (!options) options={};
    let imageFormat = checkForImageFormatValidity(options);
    let child = spawnSync("cmd.exe", ["/c", `${__dirname}\\libs\\${programName} ${imageFormat}`]);
    return JSON.parse(child.stdout.toString());
}
function commonMethod ( options , programName ) { if ( ! options ) options = { } ; let imageFormat = checkForImageFormatValidity ( options ) ; let child = spawnSync ( "cmd.exe" , [ "/c" , ` ${ __dirname } \\ \\ ${ programName } ${ imageFormat } ` ] ) ; return JSON . parse ( child . stdout . toString ( ) ) ; }
Common Method which acts as a template for captureAllWindows, captureFullScreen, captureTaskBar, captureWorkingArea functions
 @private
 @function
 @returns {object} Returns JS Object which is parsed from executable's standard output JSON String.
Common Method which acts as a template for captureAllWindows captureFullScreen captureTaskBar captureWorkingArea functions @private @function @returns { object } Returns JS Object which is parsed from executable ' s standard output JSON String .