sindresorhus/terminal-link
sindresorhus/terminal-link has 671 GitHub stars and 27 forks. GitHot measured 0 in 7 days. Last checked 2026-11-10 01:17 UTC. Last push 2026-09-18.
Create clickable links in the terminal
Measured star growth
- in 24h
- Update delayed
- in 7 days
- 0
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalterminal-link
Create clickable links in the terminal

Install
npm install terminal-link
Usage
import terminalLink from 'terminal-link';
const link = terminalLink('My Website', 'https://sindresorhus.com');
console.log(link);
API
terminalLink(text, url, options?)
Create a link for use in stdout.
For unsupported terminals, by default the link will be printed as plain text with a space separator: My website https://sindresorhus.com.
text
Type: string
Text to linkify.
url
Type: string
URL to link to.
options
Type: object
fallback
Type: function | boolean
Override the default fallback. The function receives the text and url as parameters and is expected to return a string.
If set to false, the text will be returned as-is when a terminal is unsupported.
terminalLink.isSupported
Type: boolean
Check whether the terminal's stdout supports links.
Prefer just using the default fallback or the fallback option whenever possible.
terminalLink.stderr(text, url, options?)
Create a link for use in stderr.
Same arguments as terminalLink().
terminalLink.stderr.isSupported
Type: boolean
Check whether the terminal's stderr supports links.
Prefer just using the default fallback or the fallback option whenever possible.
Related
- terminal-link-cli - CLI for this module
- ink-link - Link component for Ink
- chalk - Terminal string styling done right
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,689 starspublic-apis/public-apis
A collective list of free APIs
498,082 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
451,080 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,313 stars