Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

backend-assistant

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backend-assistant

Powerful assistive functions for Firebase backends


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Issues
1




Site | NPM Module | GitHub Repo

Backend Assistant is an NPM module for Firebase developers that instantly powerful assistive functions for Firebase backends.

Install

Install with npm:

npm install backend-assistant

Features

  • Automatically parse incoming requests to get relevant information like IP, country, etc
  • Automatically console log relevant information like the function name and more.

Example Setup

After installing via npm, simply paste this script in your functions/index.js file.

// In your functions/index.js file
const admin = require('firebase-admin');
const functions = require('firebase-functions');
const Assistant = require('backend-assistant');
let assistant = new Assistant().init({
    admin: admin,
    functions: functions,
    // req: req, // optional
    // res: res, // optional
  },
  {
    accept: 'json',
  })

Usage

Now you can harness powerful features

// assistant.log: correctly logs objects in Firebase functions
assistant.log({
  parent: {
    child: 'value'
  }
}, {environment: 'production'})

Final Words

If you are still having difficulty, we would love for you to post a question to the Backend Assistant issues page. It is much easier to answer questions that include your code and relevant files! So if you can provide them, we'd be extremely grateful (and more likely to help you find the answer!)

Projects Using this Library

Somiibo: A Social Media Bot with an open-source module library.
JekyllUp: A website devoted to sharing the best Jekyll themes.
Slapform: A backend processor for your HTML forms on static sites.
SoundGrail Music App: A resource for producers, musicians, and DJs.
Hammock Report: An API for exploring and listing backyard products.

Ask us to have your project listed! :)

FAQs

Package last updated on 22 Nov 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