1.0.4 • Published 2 years ago
cfun v1.0.4
CFUN
Create cloud functions like a boss
Install:
npm i -g cfun
Usage:
In project's root terminal, typing:
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