Preparing for system design interviews?  Try bugzed.com →

Prepend HTTP/S Protocol to URLs

JSON →
library 4.0.0 ·javascript
verified Jun 17, 2026

prepend-http is a focused utility package designed to ensure URLs have a proper `http://` or `https://` protocol prefix. It intelligently adds `https://` (by default) to "humanized" URLs such as domain names (`sindresorhus.com`) or `localhost` entries, while leaving already-prefixed URLs untouched. The package is currently stable at version `4.0.0`, released recently in response to ecosystem changes. Historically, releases are infrequent but significant, often tied to Node.js LTS updates or module system shifts. A key differentiator is its simplicity and reliability, provided by a well-regarded maintainer in the JavaScript ecosystem. Since version 4, prepend-http is a pure ESM package, aligning with modern JavaScript module practices, and requires Node.js 12.20 or newer.

total hits 23
actors 4 distinct systems
last hit 16d ago AhrefsBot
ByteDance
4
Script
1
Humans
12

top countries 🇸🇬 Singapore · 🇨🇦 Canada · 🇨🇳 China · 🇺🇸 United States · VN