os-firebase-project-creator
v1.0.41
Published
this is a self contained module for creating an ios/android app in Firebase, and downloading the json file
Downloads
2
Maintainers
Readme
Introduction
This project will register a new app to an existing Firebase project and save the Google Services file in a desired path.
Installation
Install via npm:
npm i os-firebase-project-creator
Usage
Require pc:
var pc = require("os-firebase-project-creator")
Register an app:
await pc.registerFirebaseApp("MyFirebaseProject", "ios", "com.osfunapps.my-cool-app", "My Cool App", "/Users/home/Desktop")
Function signature
/**
* will create a new app in a given Firbase project
* @param projectName -> your project name
* @param iosOrAndroid -> choose either 'ios' or 'android'
* @param packageOrBundleName -> package/bundle name. For example: com.mlstudios.coolApp
* @param appNickname -> the name which be displayed in the project
* @param jsonFilePath -> the path to save the json file
* @param puppeteerPage -> (optional) puppeteer page to use (if not specified, will create a new one
* @param killBrowserAtTheEnd -> true to kill the created browser, false to keep it alive and return the page
* @returns {Promise<void>} -> call this function via await
*/
registerFirebaseApp: async function (projectName,
iosOrAndroid,
packageOrBundleName,
appNickname,
jsonFilePath,
puppeteerPage = null,
killBrowserAtTheEnd = true)
Additional notes
This is an automated module which uses os-puppeteer-helper to automate the app registration.
Links
Licence
ISC