Showing a convenient way on how to use Secret Manager to securely pass sensible data as environment values to App Engine services running with Node.js.
Creating a convenient and production-grade configuration management for a GCP cloud function in Node.js using Secret Manager and the secure-config package. Includes a complete example project on GitHub.
Discovering the default
process.env variables provided in cloud functions and app engine services on Google Cloud Platform covering Node.js 16, 18 and 20 as well as Gen1 and Gen2 functions. Including a simple project for retrieving the values.
Short comparison of the most common statements in CommonJS vs. ESM/ECMAScript for importing, exporting and in your package.json.
A quick guide for converting your existing NodeJS projects from CommonJS to ESM/ECMAScript. Including Express, Jest, Supertest and ESLint.
Showing an elegant way on passing dates to your REST API’s and webservices using Express route parameters and regex validation standard features.
A guided tour on how to achieve the most complete code-coverage with Jest in your NodeJS projects and an some thoughts on why this is not necessarily the primary target.
A short checklist for publishing new major versions of your packages in the npm registry including support for patching older versions.
Demonstrating a pragmatic way on how to test code paths resulting in
process.exit using the Jest test library.