Skip to content
JS
Package

protocols

Get the protocols of an input url.

v2.0.2, 14 Feb 2025MITCommonJSTypes: NoneURLs and query strings
$ npm install protocols

Key numbers

As of 25 Sept 2026
Weekly downloads
5.3m
+12% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v2.0.2
GitHub stars
6
3 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6m8mSept 2025Mar 2026Sept 2026High 7.3m (9 Jun 2026)Low 3m (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.

5,282,875 downloads last week, 25,109,423 in the last month. The 12-month change of +12% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
017 in total
Latest version
2.0.2, 14 Feb 20251 year ago
First published
5 Aug 2015
Last push to GitHub
14 Feb 2025588 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
348

Major versions

  1. v2 first release 2.0.0, 27 Jun 2022
  2. v1 first release 1.0.0, 5 Aug 2015

Recent releases

VersionPublished
2.0.214 Feb 2025
2.0.127 Jun 2022
2.0.027 Jun 2022
1.4.89 Aug 2020
1.4.73 Jan 2019
1.4.68 Sept 2017
1.4.523 Mar 2017
1.4.420 Mar 2017
1.4.311 Oct 2016
1.4.211 Oct 2016
1.4.125 May 2016
1.4.018 Jan 2016
1.3.114 Jan 2016
1.3.03 Dec 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
7.1 kB
Dependencies (0)
None
npm install protocols
  • jsDelivrhttps://cdn.jsdelivr.net/npm/protocols@2.0.2/
  • unpkghttps://unpkg.com/protocols@2.0.2/
  • esm.shhttps://esm.sh/protocols@2.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.