Find Similar Packages for firebase-functions
firebase-functionsSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on firebase-functions's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of firebase-functions](https://npm-compare.com/img/npm-trend/THREE_YEARS/firebase-functions.png)](https://npm-compare.com/firebase-functions#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Show GitHub stars trend chart on firebase-functions's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of firebase-functions](https://npm-compare.com/img/github-trend/firebase-functions.png)](https://npm-compare.com/firebase-functions)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
firebase-functions810,5661,051916 kB9610 days agoMIT
README for firebase-functions

Firebase SDK for Cloud Functions

The firebase-functions package provides an SDK for defining Cloud Functions for Firebase.

Cloud Functions is a hosted, private, and scalable Node.js environment where you can run JavaScript code. The Firebase SDK for Cloud Functions integrates the Firebase platform by letting you write code that responds to events and invokes functionality exposed by other Firebase features.

Learn more

Learn more about the Firebase SDK for Cloud Functions in the Firebase documentation or check out our samples.

Here are some resources to get help:

If the official documentation doesn't help, try asking through our official support channels

Please avoid double posting across multiple channels!

Usage

// functions/index.js
const { onValueCreated } = require("firebase-functions/database");
const logger = require("firebase-functions/logger");
const notifyUsers = require("./notify-users");

exports.newPost = onValueCreated({ ref: "/posts/{postId}" }, (event) => {
  logger.info("Received new post with ID:", event.params.postId);
  return notifyUsers(event.data.val());
});

Contributing

To contribute a change, check out the contributing guide.

License

© Google, 2017. Licensed under The MIT License.