Convert HTML to Pug in Node.js

We can use the html2pug npm package to convert HTML to Pug in JavaScript / Node.js. The fragment option tells html2pug whether to wrap your HTML in an tag, if it isn’t […]

Limit API requests in express.js

In this tutorial we are going to use an npm package called express-rate-limit. Install it using the following command. This library provides a brute-force protection for express routes by rate-limiting […]