Skip to content

ClassFunc/cfun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CFUN

Create cloud functions like a boss

Install:

npm i -g cfun

Usage:

In project's root terminal, typing:

cfun

cfun

Function types and actions:

const functionTypes = {
    firestore: {
        document: [
            'onCreate',
            'onUpdate',
            'onDelete',
            'onWrite',
        ],
    },
    auth: {
        user: ['onCreate', 'onDelete'],
    },
    storage: {
        object: [
            // 'onChange',
            'onFinalize',
            'onArchive',
            'onDelete',
            'onMetadataUpdate',
        ],
        bucket: {
            object: [
                // 'onChange',
                'onFinalize',
                'onArchive',
                'onDelete',
                'onMetadataUpdate',
            ],
        },
    },
    pubsub: {
        schedule: ['onRun'],
        // topic: ['onPublish'],
    },
    https: ['onRequest', 'onCall'],
    // 'database',
    // 'remote config',
    // 'analytics',
    // 'testlab'
};

License:

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published