Future Studio Tutorials

Public tutorial on Thursday. Wednesday is only.

Vue.js 3 — How to Unmount an App and Remove from DOM

Vue.js 3 provides a handy createApp function allowing you to fluently create and mount a single page application. We’re currently working on a project that mainly uses native JavaScript and we’re adding Vue.js programmatically when creating and interacting with a complex modal. Using Vue.js for …

Continue Reading

Node.js — Constant for Platform-Specific Newline

Operating systems use different end-of-line markers indicating a new line after the given marker. For example, POSIX systems (like Linux and macOS) use \n and Windows uses \r\n. This tutorial shows you how to retrieve a platform-specific EOL marker depending on the operating system that runs your code. {{outline} …

Continue Reading

Node.js — Calculate a SHA256 Hash

Node.js comes with a built-in crypto module and a bundled version of OpenSSL. The crypto module wraps OpenSSL providing an API for cryptographic functions. Node.js’ crypto module provides a createHash method allowing you to calculate hashes of given content. This tutorial shows you how to use the createHash …

Continue Reading

Node.js — Calculate an MD5 Hash

Node.js comes with the crypto module that provides a lot of useful methods for data encryption and hashing. There’s a built-in function to calculate an MD5 hash for a given value. This tutorial shows you how to hash a given string using the MD5 algorithm. {{outline}} Calculate an …

Continue Reading

JavaScript — How to Fix “Uncaught SyntaxError: Cannot use import statement outside a module”

JavaScript programs started small by being used here and there. Over time, the usage of JavaScript increased and we’re writing full applications that run in the browser. These large applications can be hard to maintain. It makes sense to think about ways of splitting them up into modules. Modern …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.