@tutorbot/gcf-helper

1.1.11 • Public • Published

@tutorbot/gcf-helper

yarn add @tutorbot/gcf-helper

environment variables

MONGODB_EVENT_USERNAME=username
MONGODB_EVENT_PASSWORD=password
MONGODB_EVENT_HOST=localhost
MONGODB_EVENT_PORT=27017
MONGODB_EVENT_DB=event

example

exports.subscribe = require("@tutorbot/gcf-helper")(async (data, context) => {
    // data is the event
    console.log(data, context);
    
    // do something
    // ...
    
    // something went wrong 
    throw new Error("something went wrong")
});

Readme

Keywords

none

Package Sidebar

Install

npm i @tutorbot/gcf-helper

Weekly Downloads

0

Version

1.1.11

License

MIT

Unpacked Size

5.25 kB

Total Files

5

Last publish

Collaborators

  • gevorgmargaryan
  • aramkarapetian
  • hovhannes.babayan
  • dav_yan_it