Skip to content
tsmx

tsmx

pragmatic IT

  • start
  • npm-packages

NodeJS

Full code-coverage with Jest

24. December 20243. January 2022 by tsmx-dev

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.

Read more

Categories NodeJS Tags Jest, NodeJS, testing

npm major package upgrades with backward patch support

20. October 20213. October 2021 by tsmx-dev

A short checklist for publishing new major versions of your packages in the npm registry including support for patching older versions.

Read more

Categories Development, NodeJS Tags major-version, NodeJS, npm, package, patch, publish, update

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

Commander options hands-on – advanced CLI’s with NodeJS

30. April 202311. September 2021 by tsmx-dev

The Commander package is a great utility for building a CLI with NodeJS. This article provides a comprehensive hands-on for the various option features of Commander.

Read more

Categories NodeJS Tags CLI, Commander, NodeJS, option

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*

Express: middleware function with custom parameters

28. May 202426. March 2021 by tsmx-dev

Implementing an Express middleware function that can handle custom parameters.

Read more

Categories NodeJS Tags Express, NodeJS

CI/CD with GitHub actions for NodeJS with Coveralls

2. February 202313. December 2020 by tsmx-dev

10-minutes setup guide for building a NodeJS repo including Coveralls test stats. No need for Travis any more.

Read more

Categories NodeJS Tags automation, CI/CD, GitHub, integration, NodeJS, testing, Travis-CI

NodeJS: migrate from deprecated Request package to Got

28. May 202314. November 2020 by tsmx-dev

OMG!!! The Request package is deprecated… some tips beyond the docs and migration guide when moving to Got.

Read more

Categories NodeJS Tags authorization, bearer token, download, got, jsonwebtoken, migration, NodeJS, request, stream

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

human-readable – create user-friendly strings for byte sizes in NodeJS

21. September 202127. September 2020 by tsmx-dev

Lightweight npm-package for creating human-readable strings from bytes (e.g. 17238 → 17.24 kB) or other sizes.

Read more

Categories NodeJS Tags bytes, conversion, filesize, human-readable, IEC, NodeJS, npm, pretty-print, SI
Older posts
Newer posts
← Previous Page1 Page2 Page3 Next →

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