New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

blackboard-firebase-storage

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blackboard-firebase-storage

Send upload file firebase-storage from Node.js – easy as Peeled bananas! 🍌  ⬆️ 🗄

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

blackboard-firebase-storage

Send upload file firebase-storage from Node.js – easy as Peeled bananas! 🍌  ⬆️ 🗄

npm version

NPM

Installation

$ npm install blackboard-firebase-storage

or

$ yarn add blackboard-firebase-storage

Importing

// Using Node.js `require()`
const brg = require('blackboard-firebase-storage');

Overview

Connecting to Firebase

First, we need to define a connection firebase service. brg.connect

brg.connect({
    apiKey: '<your-api-key>',
    authDomain: '<your-auth-domain>',
    databaseURL: '<your-database-url>',
    storageBucket: '<your-storage-bucket-url>'
  })

Upload File

brg.uploadFile("path","name",file).then(snap => {
      console.log(snap)
  });

Upload String File

brg.uploadString("path","name","url_file || base64").then(snap => {
      console.log(snap)
  });

Get File

brg.getFile("path","name").then(snap => {
      console.log(snap)
  });

Get Url

brg.getUrl("path","name").then(snap => {
      console.log(snap)
  });

Remove

brg.remove("path","name").then(snap => {
      console.log(snap)
  });

Keywords

FAQs

Package last updated on 07 Sep 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc