JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46994
  • Score
    100M100P100Q144341F
  • License MIT

Link component for Ink

Package Exports

  • ink-link

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ink-link) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ink-link Build Status

Link component for Ink

Creates clickable links in the terminal!

Install

$ npm install ink-link

Usage

const {h, render, Text} = require('ink');
const Link = require('ink-link');

render(
    <div>
        <Link url="https://sindresorhus.com">
            My <Text cyan>Website</Text>
        </Link>
    </div>
);
//=>

API

Supported terminals.

For unsupported terminals, the link will be printed in parens after the text: My website (https://sindresorhus.com).

url

Type: string

URL to link to.

License

MIT © Sindre Sorhus