Skip to content
tsmx

tsmx

pragmatic IT

  • start
  • npm-packages

JavaScript

Using Apache Kafka for transferring files

16. April 2025 by tsmx-dev

A quick guide on how to use Apache Kafka as a sophisticated platform for exchanging files between applications and systems. The KafkaJS library is used on the producer and consumer side to implement a minimal working example.

Read more

Categories Development, NodeJS Tags Apache Kafka, JavaScript, Kafka, NodeJS

Integrating GCP Secret Manager with App Engine environment variables

6. July 202415. October 2023 by tsmx-dev

Showing a convenient way on how to use Secret Manager to securely pass sensible data as environment values to Google App Engine (GAE) services running with Node.js.

Read more

Categories GCP, NodeJS Tags app engine, GAE, GCP, JavaScript, NodeJS

CommonJS vs. ESM/ECMAScript cheat-sheet

20. August 202316. August 2023 by tsmx-dev

Short comparison of the most common statements in CommonJS vs. ESM/ECMAScript for importing, exporting and in your package.json.

Read more

Categories JavaScript, NodeJS Tags CommonJS, ECMA, ESM, JavaScript, NodeJS

Destructuring nested object properties in JavaScript

16. August 202324. July 2023 by tsmx-dev

Quick tutorial on how to use destructuring for accessing nested JavaScript object properties.

Read more

Categories JavaScript, NodeJS Tags JavaScript, NodeJS

Convert an existing NodeJS project from CommonJS to ESM / ECMAScript

20. August 202325. May 2023 by tsmx-dev

A quick guide for converting your existing NodeJS projects from CommonJS to ESM/ECMAScript. Including Express, Jest, Supertest and ESLint.

Read more

Categories NodeJS Tags CommonJS, convert, ECMAScript, ES6, eslint, ESM, JavaScript, Jest, project

Express: passing dates in an URL using route parameters including regex validation

28. May 20246. June 2022 by tsmx-dev

Showing an elegant way on passing dates to your REST API’s and webservices using Express route parameters and regex validation standard features.

Read more

Categories NodeJS Tags Express, JavaScript, NodeJS

MongoDB: add/update fields referencing other existing fields using aggregation pipelines

9. April 2022 by tsmx-dev

Short explanation on how to add or update fields in documents referencing the values of other already existing fields by leveraging the aggregation pipeline framework.

Read more

Categories MongoDB Tags JavaScript, MongoDB

Testing process.exit with Jest in NodeJS

27. September 202117. September 2021 by tsmx-dev

Demonstrating a pragmatic way on how to test code paths resulting in process.exit using the Jest test library.

Read more

Categories NodeJS Tags JavaScript, Jest, NodeJS, testing

JavaScript Map: sorted for-loop with a custom iterator

20. August 20211. June 2021 by tsmx-dev

An elegant way of how to do a sorted iteration over all entries of a JavaScript Map with a for-loop using a custom iterator implemented with Symbol.iterator, function* and yield*.

Read more

Categories Development, NodeJS Tags for-loop, function*, iterate, JavaScript, Map, NodeJS, sort, Symbol.iterator, yield, yield*

Use CommonJS npm packages in the browser with Browserify

21. September 20217. October 2020 by tsmx-dev

A convenient way to use CommonJS npm packages in client-side JavaScript using Browserify.

Read more

Categories NodeJS Tags Browserify, client-side, CommonJS, JavaScript, module, NodeJS, npm, watchify

Recent Posts

  • Using Apache Kafka for transferring files
  • Using Secrets Manager environment variables in AWS ECS
  • React + TypeScript + Bootstrap quick start powered by Vite
  • Using pgAdmin running in Docker to access a dockerized PostgreSQL
  • Migrating eslintrc.json to eslint.config.js in a CommonJS project

Categories

  • AWS (1)
  • Cloud (2)
  • Development (7)
  • GCP (4)
  • JavaScript (2)
  • MongoDB (3)
  • NodeJS (21)
  • Oracle DB (1)
  • PostgreSQL (4)
  • React (1)

Archives

  • April 2025
  • January 2025
  • December 2024
  • August 2024
  • June 2024
  • May 2024
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • May 2023
  • November 2022
  • June 2022
  • May 2022
  • April 2022
  • January 2022
  • November 2021
  • October 2021
  • September 2021
  • June 2021
  • March 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020

Links

Privacy Policy | Imprint

© 2025 tsmx • Built with GeneratePress
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy policy