cfun

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i cfun

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

10.3 kB

Total Files

5

Last publish

Collaborators

  • thanh_classfunc