Future Studio Tutorials

Public tutorial on Thursday. Wednesday is only.

Node.js — Show Your NODE_MODULE_VERSION

Switching to a new Node.js major version requires you to freshly install dependencies. You may receive the following error when forgetting to re-install dependencies: Error: The module '/home/futurestudio/projects/futurestud.io/node_modules/bcrypt/lib/binding/bcrypt_lib.node' was compiled against a different Node.js version …

Continue Reading

TypeScript — Using a String as Enum Key

TypeScript enums are similar to JavaScript objects. They store a named set of constants. Enums can also store a key-value pair. You can access the values with a string-like value. It’s “string-like” because enums are more strict in types and require a specific string value: one of the available …

Continue Reading

TypeScript — Get All Values of an Enum

TypeScript Enums are a feature carrying a named set of constants. TypeScript supports numeric enums and string enums. You can provide a name and value, like a key-value pair, for your enums. This tutorial shows you how to retrieve all available values of a TypeScript enum. {{outline}} Get All Values …

Continue Reading

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
Page 1 of 90

Explore the Library

Find interesting tutorials and solutions for your problems.