All Projects → sindresorhus → Terminal Link

sindresorhus / Terminal Link

Licence: mit
Create clickable links in the terminal

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Terminal Link

Figures
Unicode symbols with Windows CMD fallbacks
Stars: ✭ 438 (+21.33%)
Mutual labels:  terminal, command-line, npm-package
Terminal
The new Windows Terminal and the original Windows console host, all in the same place!
Stars: ✭ 79,371 (+21886.43%)
Mutual labels:  terminal, command-line
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (-4.43%)
Mutual labels:  terminal, command-line
Hyper Site
The official website for the Hyper terminal
Stars: ✭ 289 (-19.94%)
Mutual labels:  terminal, command-line
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (-3.05%)
Mutual labels:  terminal, command-line
Mitype
Typing speed test in terminal
Stars: ✭ 241 (-33.24%)
Mutual labels:  terminal, command-line
Micro
A modern and intuitive terminal-based text editor
Stars: ✭ 18,526 (+5031.86%)
Mutual labels:  terminal, command-line
Pdd
📅 Tiny date, time diff calculator with piggybacked timers
Stars: ✭ 218 (-39.61%)
Mutual labels:  terminal, command-line
Termplotlib
Plotting on the command line
Stars: ✭ 294 (-18.56%)
Mutual labels:  terminal, command-line
Pastel
A command-line tool to generate, analyze, convert and manipulate colors
Stars: ✭ 3,742 (+936.57%)
Mutual labels:  terminal, command-line
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+808.31%)
Mutual labels:  terminal, command-line
Jquery.terminal
jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
Stars: ✭ 2,623 (+626.59%)
Mutual labels:  terminal, command-line
Go Termd
Package termd provides terminal markdown rendering, with code block syntax highlighting support.
Stars: ✭ 223 (-38.23%)
Mutual labels:  terminal, command-line
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+681.44%)
Mutual labels:  terminal, command-line
Bitcoin Chart Cli
Bitcoin chart for the terminal as command line util
Stars: ✭ 221 (-38.78%)
Mutual labels:  terminal, npm-package
Teip
Select partial standard input and replace with the result of another command efficiently
Stars: ✭ 280 (-22.44%)
Mutual labels:  terminal, command-line
Bcal
🔢 Storage and general-purpose calculator
Stars: ✭ 329 (-8.86%)
Mutual labels:  terminal, command-line
Notica
Send browser notifications from your terminal. No installation. No registration.
Stars: ✭ 215 (-40.44%)
Mutual labels:  terminal, command-line
Kmdr Cli
🧠 The CLI tool for learning commands from your terminal
Stars: ✭ 218 (-39.61%)
Mutual labels:  terminal, command-line
Theme.sh
A script which lets you set your $terminal theme.
Stars: ✭ 290 (-19.67%)
Mutual labels:  terminal, command-line

terminal-link

Create clickable links in the terminal

Install

$ npm install terminal-link

Usage

const terminalLink = require('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.

Supported terminals.

For unsupported terminals, the link will be printed in parens after the text: 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 fallback will be disabled 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 stdout.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].