firecracker
Firecracker is a small firebase js client wrapper
Last updated 5 years ago by asbjornenge .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install firecracker 
SYNC missed versions from official npm registry.

firecracker

browser support

Firecracker is a small wrapper around the firebase js client.
It takes a root and allows you to compose in some nice ways. It will also unpack val & name.

Install

Firecracker is available on npm.

npm install firecracker

Use

var root = new Firebase('http://my.firebase.root')
firecracker(root)
    .path('/user/messages')
    .from('-JKUu24YeVsjhkDMfSkR')
    .on('child_added', function(child) {
        console.log(child.fid)
    })
    .on('child_updated', function(child) {
        console.log('update!')
    })
    .listen()

Docs

For full documentation see the spec.

Changelog

1.0.1

  • Using .limitToLast to mimic previous .limit behaviour
  • Using .key over .name

1.0.0

  • Replaced .limit with .limitToFirst since .limit is being deprecated
  • Aligning with semver

0.0.1

  • Initial release

enjoy.

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

3 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |