1.0.4 • Published 2 years ago

cfun v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago