Skip to content

Instantly share code, notes, and snippets.

View mike-4040's full-sized avatar

Mike Kravtsov mike-4040

  • Homebot
  • San Diego
  • 17:43 (UTC -08:00)
View GitHub Profile
@zanona
zanona / sentry-serverless-firebase.ts
Last active September 4, 2024 19:51
Missing Sentry's firebase serverless wrappers
/**
* Temporary wrapper for firebase functions until @sentry/serverless support is implemented
* It currently supports wrapping https, pubsub and firestore handlers.
* usage: https.onRequest(wrap((req, res) => {...}))
*/
import type {Event} from '@sentry/types';
import type {https} from 'firebase-functions';
import type {onRequest, onCall} from 'firebase-functions/lib/providers/https';
import type {ScheduleBuilder} from 'firebase-functions/lib/providers/pubsub';
import type {DocumentBuilder} from 'firebase-functions/lib/providers/firestore';
@bradtraversy
bradtraversy / npmcrashcourse.txt
Last active September 29, 2024 21:04
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)