Gathering detailed insights and metrics for protocolify
Gathering detailed insights and metrics for protocolify
Gathering detailed insights and metrics for protocolify
Gathering detailed insights and metrics for protocolify
Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths
npm install protocolify
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (80.21%)
TypeScript (19.79%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
24 Stars
21 Commits
4 Forks
5 Watchers
1 Branches
3 Contributors
Updated on Jan 31, 2024
Latest Version
4.0.0
Package Id
protocolify@4.0.0
Size
1.83 kB
NPM Version
7.10.0
Node Version
16.2.0
Published on
Aug 09, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Prepend
https://
to humanized URLs likesindresorhus.com
andfile://
to file paths
Useful when you want to accept either a local file or URL as argument in your CLI app.
$ npm install protocolify
1import protocolify from 'protocolify'; 2 3protocolify('sindresorhus.com'); 4//=> 'https://sindresorhus.com' 5 6protocolify('localhost', {https: false}); 7//=> 'http://localhost' 8 9protocolify('https://sindresorhus.com'); 10//=> 'https://sindresorhus.com' 11 12// If it exists on disk, it will be interpreted as a file and not a URL 13protocolify('index.js'); 14//=> 'file:///Users/sindresorhus/dev/protocolify/index.js'
Type: string
The URL to prepend https://
or file path to prepend file://
.
Type: object
Type: boolean
Default: true
Prepend https://
instead of http://
to URLs.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/21 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More