Socket
Socket
Sign inDemoInstall

firebase.database

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    firebase.database

A module made for Firestore. You can save, delete, update and shoot data. It allows you to do it all aesthetically and quickly.


Version published
Weekly downloads
3
Maintainers
2
Install size
1.91 kB
Created
Weekly downloads
 

Readme

Source

Firebase.db

🇬🇧 English

A module made for Firestore. You can save, delete, update and shoot data. It allows you to do it all aesthetically and quickly. Discord Server.

🇹🇷 Türkçe

Firestore için yapılmış bir modül.Veri kaydedebilirsiniz,silebilirsiniz,güncelleyebilirsiniz ve çekebilirsiniz.Hepsini estetik ve hızlı şekilde yapmanızı sağlar. Discord Sunucusu.

npm install firebase.db
const firebase = require('firebase.database')
var serviceAccount = require("./service.json"); //service account
firebase.connect(serviceAccount)
let db = firebase.db
var data = db.collection('collec').doc('docs');

//set
data.set({
'ver1': true,
'codare': 'tic'
})

//update
data.update({
  'codare': 'tics'
  })

//get
data.get().then((a) => {
if(!a.exists) return console.log('Not data :/')
console.log(a.data().codare)
})

//delete
data.delete().then(function() {
    console.log("Document successfully deleted!");
}).catch(function(error) {
    console.error("Error removing document: ", error);
});

Keywords

FAQs

Last updated on 10 Jan 2021

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