Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Last active October 9, 2017 13:26
Show Gist options
  • Save jthegedus/6c7a96a17c7a6759790e9d5c7d459c5d to your computer and use it in GitHub Desktop.
Save jthegedus/6c7a96a17c7a6759790e9d5c7d459c5d to your computer and use it in GitHub Desktop.
Cloud Functions for Firebase - ES6
import * as functions from "firebase-functions"
export let helloWorld = functions.https.onRequest((req, res) => {
let world = `from ES6 in Cloud Functions!`
res.status(200).send(`Hello ${world}`)
})
@jthegedus
Copy link
Author

jthegedus commented May 27, 2017

Simplified the example removing any external packages.
Added use of Template Literals and Import Aliasing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment