$ npm install shafile
async sha file.
i got tired of writing this in different places.
var shafile = require('shafile')'; shafile('/path/to/file',function(err,shasumhex){ console.log(shasumhex); // prints something like 691e7f544180e5e8fd5f66e33d81ce029ed32d8a });