Gathering detailed insights and metrics for supports-hyperlinks
Gathering detailed insights and metrics for supports-hyperlinks
Gathering detailed insights and metrics for supports-hyperlinks
Gathering detailed insights and metrics for supports-hyperlinks
Detect whether a terminal emulator supports hyperlinks
npm install supports-hyperlinks
98.2
Supply Chain
80.1
Quality
80.2
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
54 Stars
32 Commits
13 Forks
5 Watching
1 Branches
8 Contributors
Updated on 20 Aug 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-26.7%
2,850,462
Compared to previous day
Last week
-6%
20,523,768
Compared to previous week
Last month
16.7%
84,591,790
Compared to previous month
Last year
-0.9%
835,361,772
Compared to previous year
2
7
Detect whether a terminal emulator supports hyperlinks
Terminal emulators are starting to support hyperlinks. While many terminals have long detected URL's and linkified them, allowing you to Command-Click or Control-Click them to open a browser, you were forced to print the long unsightly URL's on the screen. As of spring 2017 a few terminals began supporting HTML like links, where the link text and destination could be specified separately.
This module allows you to detect if hyperlinks are supported in the current Terminal.
As this is a new development, we anticipate the list of supported Terminals to grow rapidly. Please open an issue or submit a PR as new Terminals implement support.
1npm install supports-hyperlinks
1const supportsHyperlinks = require('supports-hyperlinks'); 2 3if (supportsHyperlinks.stdout) { 4 console.log('Terminal stdout supports hyperlinks'); 5} 6 7if (supportsHyperlinks.stderr) { 8 console.log('Terminal stderr supports hyperlinks'); 9}
Returns an Object
with a stdout
and stderr
property for testing either streams. Each property is a boolean
, indicating whether or not hyperlinks are supported.
Obeys the --no-hyperlinks
, --hyperlink=always
, and --hyperlink=never
CLI flags.
Can be overridden by the user with the flags --hyperlinks=always
and --no-hyperlinks
. For situations where using those flags are not possible, add the environment variable FORCE_HYPERLINK=1
to forcefully enable hyperlinks or FORCE_HYPERLINK=0
to forcefully disable. The use of FORCE_HYPERLINK
overrides all other hyperlink support checks.
hyperlinker
: Write hyperlinks for the Terminal.MIT © James Talmage
No vulnerabilities found.
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 8/25 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
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 2024-11-25
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