Articles tagged in: Node.js



Get Yesterday's Date in JavaScript or Node.js

Sometimes it’s helpful to translate dates into labels in your web application. For example, the human brain perceives the label „yesterday“ easier than translating the string of yesterday’s date to „yesterday“. This tutorial shows you how to calculate yesterday’s date in JavaScript. {{outline}} How Do You Get …

Continue Reading

Node.js — Securely Parse JSON

Node.js provides a global JSON object providing methods to parse a JSON string to JavaScript or stringify JavaScript values to a JSON string. The problem is that JavaScript’s global JSON object comes with a flaw allowing prototype pollution attacks. This tutorials shows you how to securely parse JSON …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.