Socket
Socket
Sign inDemoInstall

fire-child

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fire-child

A Node.js module which attaches listeners to grandchildren of a Firebase reference.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
466 kB
Created
Weekly downloads
 

Readme

Source

FireChild

Build Status NPM version

A Node.js module which attaches listeners to grandchildren of a Firebase reference.

Read more about Firebase listeners here: https://www.firebase.com/docs/web/api/query/on.html.

Installation

To install FireChild, run the following command:

$ npm install fire-child

API Reference

FireChild

A FireChild instance is used to add listeners to grandchild locations.

var FireChild = require('fire-child');
new FireChild(ref)

Creates and returns a new FireChild instance to add listeners. Note that this ref can point to anywhere in your Firebase and can either be a string or an instance of the Firebase object.

// Create a FireChild object
var fireChild = new FireChild('https://<your-firebase>.firebaseio.com/');
FireChild.on(depth, eventType, callback, [cancelCallback], [context])

Adds a Firebase listener at the specified depth from the reference which created the FireChild.

// Add child_added eventType to grandchildren of Firebase reference
fireChild.on(1, 'child_added', function (childSnapshot, prevChildName) {});

Contributing

If you'd like to contribute to FireChild, you'll need to run the following commands to get your environment set up:

$ git clone https://github.com/davidcaseria/FireChild.git
$ cd FireChild           # go to the geofire directory
$ npm install -g mocha   # globally install mocha test framework
$ npm install            # locally install all dependencies

Keywords

FAQs

Last updated on 27 Sep 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc