0.2.2 • Published 1 year ago

cute-gcf v0.2.2

Weekly downloads
-
License
CC-BY-4.0
Repository
github
Last release
1 year ago

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

0.2.1

1 year ago

0.2.0

1 year ago

0.2.2

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago