Just a bike-shed.
npm install hash.js
var hash = require('hash.js')
hash.sha256().update('abc').digest('hex')
var sha512 = require('hash.js/lib/hash/sha/512');
sha512().update('abc').digest('hex');
Author: indutny
Source Code: https://github.com/indutny/hash.js
License: MIT License