lib/exists.js
function exists(filedir){
    // promise wrapper
    return new Promise(function(resolve){
        // try to stat the file
        _fs.stat(filedir, function(err){
            resolve(!err)
        });
    });
}
function exists(filedir){
    // promise wrapper
    return new Promise(function(resolve){
        // try to stat the file
        _fs.stat(filedir, function(err){
            resolve(!err)
        });
    });
}
function exists ( filedir ) { // promise wrapper return new Promise ( function ( resolve ) { // try to stat the file _fs . stat ( filedir , function ( err ) { resolve ( ! err ) } ) ; } ) ; }
"modern" exists implmentation
modern exists implmentation