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