firebase-repl
v1.1.0
Published
A Firebase REPL
Downloads
2
Readme
firebase-repl
A simple Firebase client REPL. Expects FIREBASE_URL
and FIREBASE_AUTH_SECRET
to be in your environment.
This should be installed globally.
npm install -g firebase-repl
Then type fbrepl
to start.
Extras
firebase-repl adds a few bonus functions:
root
- a ref to the root of your Firebase.fp
- aFireproof
ref to the root.Firebase#dump([depth])
- prints the current value of a ref to the console.depth
tellsutil.inspect
how deep to go into the object graph. Example:root.child('foo').dump();
Firebase#count()
- prints the number of keys present in the value.Firebase#has(key)
- prints the child keys which have a grandchild namedkey
.Firebase#compareKeys(jsonFile)
- reads an array of keys from a JSON file on disk and prints the name of keys in Firebase that are not named in the array.$()
- returns the value from the lastdump()
call.