os-firebase-project-creator

1.0.41 • Public • Published

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

npm os-puppeteer-helper

Licence

ISC

os-firebase-project-creator-npm

Package Sidebar

Install

npm i os-firebase-project-creator

Weekly Downloads

0

Version

1.0.41

License

ISC

Unpacked Size

11.9 kB

Total Files

11

Last publish

Collaborators

  • osfunapps