0.0.3 • Published 7 years ago

fire-grabber v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Fire Grabber

Build Status

Simple wrapper / helper method for getting data from a different node in Firebase

Installation

npm install fire-grabber

Usage

The retrieve method accepts two arguments that should be valid firebase paths. Say you have a team node /teams/{teamid}/members with a list of uids, but would like to get the associated user information for all team members stored under /Users/{uid}. You would pass /teams/{teamid}/members as the first argument and /Users as the second argument. Example:

// import
var fireGrabber = require('fire-grabber');

// Firebase config
var config = {...}

// initialize
fireGrabber.initialize(config);

// example usage
var teamMemberInfo = fireGrabber.retrieve('/teams/12345/members', '/Users').then(data => {
// returns all the user info from the list of member keys
console.log(data);
});

Tests

npm test

Contributing

Feel free to add/change anything you feel is needed.

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago