Created
February 24, 2013 05:28
-
-
Save dshaw/5022744 to your computer and use it in GitHub Desktop.
shasum with sha1 in node v0.9+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hash = require('crypto').createHash('sha1') | |
hash.setEncoding('hex') | |
process.stdin.pipe(hash).pipe(process.stdout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: