Articles tagged in: Node.js

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.