cute-gcf

0.2.2 • Public • Published

available on npmjs

cute-gcf

No error handling or cors handling in gcf.

Getting Started

Installation

  1. Install cute-gcf locally.

    npm install cute-gcf
    

Usage

import { protect } from "cute-gcf";

const main = async (req, res) =>
{
 // errors get caught and printed
 // INTERNAL SERVER ERROR CODE RESPONSE AUTOMATIC
 // dotenv.config(); automated by protect
 // no error handling in code

 res.sendStatus(OK);
};

export const yourGoogleCloudFunction = protect(main);

image of banner

/cute-gcf/

    Package Sidebar

    Install

    npm i cute-gcf

    Weekly Downloads

    1

    Version

    0.2.2

    License

    CC-BY-4.0

    Unpacked Size

    4.67 kB

    Total Files

    4

    Last publish

    Collaborators

    • planetrenox