To use email in a firebase location you need to convert it to a string replacing '.' etc. Is there a javascript function available for that somewhere? Or can the folks at firebase publish it please? eg.
var email = "a@example.com"
var id = createIdFromEmail(email)
var ref = new Firebase('https://somedemo.firebaseIO-demo.com/users/' + id)
I want the createIdFromEmail function. Thanks.