Package
is-valid-hostname
Validate hostname based on RFC-1123
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
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- jsDelivr
https://cdn.jsdelivr.net/npm/is-valid-hostname@1.0.2/ - unpkg
https://unpkg.com/is-valid-hostname@1.0.2/ - esm.sh
https://esm.sh/is-valid-hostname@1.0.2
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| swagger-cli | 100.8k | - | 6 years ago | CommonJS | - |
| express-validator | 1.1m | - | 5 months ago | CommonJS | - |
| validatorjs | 47.3k | - | 5 years ago | CommonJS | - |
| @apidevtools/swagger-parser | 4.1m | - | 4 days ago | CommonJS | - |
| swagger-parser | 985.9k | - | 5 years ago | CommonJS | - |
| ow | 2.3m | - | 11 months ago | ESM only | - |
| idn-hostname | 162.7k | - | 10 days ago | CommonJS | - |
| yup-password | 28.2k | - | 2 years ago | CommonJS | - |
Indexability: Indexed.