Skip to content
JS
Package

is-valid-hostname

Validate hostname based on RFC-1123

v1.0.2, 22 Aug 2021MITCommonJSTypes: BundledSchema validation
$ npm install is-valid-hostname

Key numbers

As of 25 Sept 2026
Weekly downloads
180.1k
+456% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 years ago
v1.0.2
GitHub stars
11
5 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 254.7k (8 Sept 2026)Low 8.7k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

180,072 downloads last week, 902,258 in the last month. The 12-month change of +456% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.0.2, 22 Aug 20215 years ago
First published
-
Last push to GitHub
22 Aug 20211,859 days before the snapshot
Repository archived
Yes
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
15

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (0)
None
npm install is-valid-hostname
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-valid-hostname@1.0.2/
  • unpkghttps://unpkg.com/is-valid-hostname@1.0.2/
  • esm.shhttps://esm.sh/is-valid-hostname@1.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
swagger-cli100.8k-6 years agoCommonJS-
express-validator1.1m-5 months agoCommonJS-
validatorjs47.3k-5 years agoCommonJS-
@apidevtools/swagger-parser4.1m-4 days agoCommonJS-
swagger-parser985.9k-5 years agoCommonJS-
ow2.3m-11 months agoESM only-
idn-hostname162.7k-10 days agoCommonJS-
yup-password28.2k-2 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.