Skip to content

Instantly share code, notes, and snippets.

@jiripospisil
Created February 28, 2014 10:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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