A short checklist for publishing new major versions of your packages in the npm registry including support for patching older versions.
NodeJS
Testing process.exit with Jest in NodeJS
Demonstrating a pragmatic way on how to test code paths resulting in process.exit
using the Jest test library.
Commander options hands-on – advanced CLI’s with NodeJS
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.
JavaScript Map: sorted for-loop with a custom iterator
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*
.
Express: middleware function with custom parameters
Implementing an Express middleware function that can handle custom parameters.
CI/CD with GitHub actions for NodeJS with Coveralls
10-minutes setup guide for building a NodeJS repo including Coveralls test stats. No need for Travis any more.
NodeJS: migrate from deprecated Request package to Got
OMG!!! The Request package is deprecated… some tips beyond the docs and migration guide when moving to Got.
Use CommonJS npm packages in the browser with Browserify
A convenient way to use CommonJS npm packages in client-side JavaScript using Browserify.
human-readable – create user-friendly strings for byte sizes in NodeJS
Lightweight npm-package for creating human-readable strings from bytes (e.g. 17238 → 17.24 kB)
or other sizes.
secure-config – easy and secure NodeJS configuration management
A convenient npm package to handle multi-environment NodeJS configurations with encrypted secrets and HMAC validation. Works with CommonJS and ESM/ECMAScript.