Created
February 28, 2014 10:05
-
-
Save jiripospisil/9268463 to your computer and use it in GitHub Desktop.
This file contains 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 Firebase = require("firebase"); | |
var crypto = require("crypto"); | |
var util = require("util"); | |
var hash = crypto.createHash("sha256").update("test").digest("base64"); | |
var ref = new Firebase("https://atom-firepad.firebaseio.com").child(hash); | |
ref.on("value", function(snapshot) { | |
console.log(util.inspect(snapshot.val(), { | |
showHidden: true, depth: null | |
})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment