cycle-firebase-driver

0.0.7 • Public • Published

cycle-firebase-driver

Firebase API v2.4.1

Basic Example

The following example shows how to:

import Cycle from '@cycle/core';
import { makeFirebaseDriver } from 'cycle-firebase-driver';
 
function main(sources) {
  const { firebase } = sources;
 
  const dinosaurs$ = firebase
    .on('value')
    .map(data => console.log(data.val()))
    .subscribe();
 
  return {};
}
 
Cycle.run(main, {
  firebase: makeFirebaseDriver('https://dinosaur-facts.firebaseio.com/dinosaurs')
});
 
// => Object {bruhathkayosaurus: Object, lambeosaurus: Object, linhenykus: Object...}

Readme

Keywords

none

Package Sidebar

Install

npm i cycle-firebase-driver

Weekly Downloads

1

Version

0.0.7

License

MIT

Last publish

Collaborators

  • scott113341