Future Studio Tutorials

Public tutorial on Thursday. Wednesday is only.

TypeScript — Get All Keys of an Enum

Enums in TypeScript are a feature that is not only a type-level extension to JavaScript. They also carry a named set of constants. TypeScript supports numeric enums and string enums. Both use string values for their identifiers. This tutorial shows you how to retrieve all available keys of a TypeScript …

Continue Reading

Node.js — Calculate a SHA512 Hash

Node.js has the built-in crypto module that allows you to calculate hashes. To calculate a hash, Node.js uses a bundled version of OpenSSL for cryptographic functions. You don’t have to interact with these cryptographic functions directly. The node:crypto module wraps OpenSSL’s features with a clean …

Continue Reading

PM2 — Use TSX to Start Your App

We migrated the code running the superchargejs.com website from CommonJS to ESM. The CommonJS project used ts-node in combination with SWC to run the code. But ts-node isn’t working with TypeScript and ESM (there’s an open issue). We can’t use ts-node because of the mentioned issue …

Continue Reading

PM2 — Using Bun to Start Your App

We migrated the code running the superchargejs.com website from CommonJS to ESM. We used ts-node in combination with SWC to run the CommonJS TypeScript code. But ts-node isn’t working with TypeScript and ESM (there’s an open issue). Now that ts-node isn’t working, we need to use …

Continue Reading

TypeScript — Module Augmentation Overwrites Declarations Instead of Merging Them

TypeScript comes with a feature called declaration merging. Declaration merging means that the TypeScript compiler merges two or more separate declarations that use the same name into a single definition. Merging definitions is helpful if you’re extending a contract with custom functionality and want to tell TypeScript about the …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.