Skip to main content

link

Callable

  • link(text: string, url: string): string

  • Can be used to wrap a piece of text in an ANSI escape code hyperlink. If a terminal does not support hyperlinks, it will pass the text through.

    import { link } from '@boost/terminal';

    const text = link('Read the manual', 'https://boostlib.dev');