Created
June 28, 2018 01:48
-
-
Save kentquirk/6a47baa229e4e7a4564720b395dd0789 to your computer and use it in GitHub Desktop.
Test of full hasher with promises
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
m = require("./objtest3.js"); | |
h = m.newHasher("This is a test") | |
h.hash().then((r) => { | |
console.log("hash of '" + h.s + "' is:", r.slice(0, 4)) | |
}).catch((e) => { | |
console.log("Error: ", e) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment