How to get name or id of Firebase project from cloud function
I am using Cloud Functions and I want to get the project name from one of the Javascript server files. I know the value is stored in .firebaserc, but I don't think the file is available on the server, right? I want to do something like this:
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.getProjectName(); // or getProjectID()
or
functions.getProjectName();
+3
source to share