Skip to content

Instantly share code, notes, and snippets.

@jiripospisil
Created February 28, 2014 10:05
Show Gist options
  • Save jiripospisil/9268463 to your computer and use it in GitHub Desktop.
Save jiripospisil/9268463 to your computer and use it in GitHub Desktop.
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