bin/pretty.js
function saveSource(sourcePath, data) {
    return new Promise((fulfil, reject) => {
        fs.writeFile(sourcePath, data, 'utf8', err => {
            if (err) {
                reject(err);
            } else {
                fulfil(true);
            }
        });
    });
}
function saveSource(sourcePath, data) {
    return new Promise((fulfil, reject) => {
        fs.writeFile(sourcePath, data, 'utf8', err => {
            if (err) {
                reject(err);
            } else {
                fulfil(true);
            }
        });
    });
}
function saveSource ( sourcePath , data ) { return new Promise ( ( fulfil , reject ) => { fs . writeFile ( sourcePath , data , 'utf8' , err => { if ( err ) { reject ( err ) ; } else { fulfil ( true ) ; } } ) ; } ) ; }
Save w promise
Save w promise