@popcornjs/firedb
v1.0.0
Published
A firebase cloud firestore wrapper
Downloads
29
Readme
fireDB
the firebase realtime database wrapper
Features
- easy setup
- built in typings
- most things are avalible
- absoltly t i n y
- just g o o d
soon gonna be used for popcorn-backend
example use
import * as db from '@popcornjs/firedb';
const firebaseDB = firebase.database()
db.init(firebaseDB)
(
// Because top level await doesnt exist :(
async () => {
db.update('something', 'New value!');
const something = await db.get('something');
console.log(something);
db.remove( 'something');
},
)();
// subscribing
db.subscribe('ThingToSubscribeTo', (value, Snapshot) => console.log(value));