lib/util.js
/** Function: storeScreenShot
 * Stores base64 encoded PNG data to the file at the given path.
 *
 * Parameters:
 *     (String) data - PNG data, encoded in base64
 *     (String) file - Target file path
 */
storeScreenShot
Stores base64 encoded PNG data to the file at the given path.

(String) data - PNG data, encoded in base64
(String) file - Target file path
storeScreenShot Stores base64 encoded PNG data to the file at the given path . ( String ) data - PNG data encoded in base64 ( String ) file - Target file path
function storeScreenShot(data, file) {
    try {
        fse.outputFileSync(file, data, {encoding: 'base64'})
    } catch(e) {
        console.error(e);
        console.error('Could not save image: ', file);
    }
}
function storeScreenShot ( data , file ) { try { fse . outputFileSync ( file , data , { encoding : 'base64' } ) } catch ( e ) { console . error ( e ) ; console . error ( 'Could not save image: ' , file ) ; } }
Function: storeScreenShot
 Stores base64 encoded PNG data to the file at the given path.
Function : storeScreenShot Stores base64 encoded PNG data to the file at the given path .