@tutorbot/gcf-helper

    1.1.10 • 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")
    });
     

    Keywords

    none

    Install

    npm i @tutorbot/gcf-helper

    DownloadsWeekly Downloads

    19

    Version

    1.1.10

    License

    MIT

    Unpacked Size

    10.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • aramkarapetian
    • dav_yan_it
    • hovhannes.babayan