firebase-functions-extended
TypeScript icon, indicating that this package has built-in type declarations

5.4.1 • Public • Published

Firebase Functions Extended

npm version

An opinionated, abstracted and simplified way to create Google Cloud Functions.

Project is ready and being used in prod and in-dev projects. It's really good and useful for me, but currently I have no will to better prepare it to publicly publish it.

Implements common functionalities to the Cloud Functions onCall, including schema declaration and validation (using zod), error throwing and better caller information access. Typescript is recommended!

Note: undefined properties are converted to null by firebase. Instead of using .optional(), use .nullable() or .nullish(). This last one is better as you may not declare the props (and they will be undefined) in question or pass undefined (that will turn to null).

Installation

Install it in your Cloud Functions directory with:

npm i firebase-functions-extended

or

yarn add firebase-functions-extended

It also requires the installation of firebase-functions and zod.

Usage

In your client, use firebase-functions-extended-client to call the functions.

Roadmap

  • Write this README

Package Sidebar

Install

npm i firebase-functions-extended

Weekly Downloads

3

Version

5.4.1

License

ISC

Unpacked Size

67.8 kB

Total Files

32

Last publish

Collaborators

  • srbrahma