1.1.0 • Published 9 years ago
firebase-repl v1.1.0
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-replThen type fbrepl to start.
Extras
firebase-repl adds a few bonus functions:
root- a ref to the root of your Firebase.fp- aFireproofref to the root.Firebase#dump([depth])- prints the current value of a ref to the console.depthtellsutil.inspecthow 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.