size.js
function calculateSize(filepath) {
    return new Promise((fulfill, reject) => {
        fs.stat(filepath, (err, stats) => {
            if (err) return reject(err);
            fulfill(stats.size);
        });
    });
}
function calculateSize(filepath) {
    return new Promise((fulfill, reject) => {
        fs.stat(filepath, (err, stats) => {
            if (err) return reject(err);
            fulfill(stats.size);
        });
    });
}
function calculateSize ( filepath ) { return new Promise ( ( fulfill , reject ) => { fs . stat ( filepath , ( err , stats ) => { if ( err ) return reject ( err ) ; fulfill ( stats . size ) ; } ) ; } ) ; }
Calculates size of the file at the given path.

@param {string} filepath
@returns Promise<number> hex encoded hash
Calculates size of the file at the given path .