cute-gcf
v0.2.2
Published
Google Cloud Functions but cute.
Downloads
8
Readme
cute-gcf
No error handling or cors handling in gcf.
Getting Started
Installation
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);