{"name":"ink-link","version":"4.0.0","description":"Link component for Ink","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ink-link.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"engines":{"node":">=18"},"scripts":{"pretest":"npm run build","prepublish":"npm run build","test":"xo && NODE_OPTIONS='--import=tsx/esm' FORCE_COLOR=1 ava","build":"tsc"},"keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"prop-types":"^15.8.1","terminal-link":"^3.0.0"},"peerDependencies":{"ink":">=4"},"devDependencies":{"@sindresorhus/tsconfig":"^5.0.0","@types/react":"^18.3.3","ava":"^6.1.3","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.34.2","eslint-plugin-react-hooks":"^4.6.2","ink":"^5.0.0","ink-testing-library":"^4.0.0","react":"^18.3.1","tsx":"^4.11.0","typescript":"^5.4.5","xo":"^0.58.0"},"ava":{"extensions":{"ts":"module","tsx":"module"},"workerThreads":false},"xo":{"extends":["xo-react"]},"_id":"ink-link@4.0.0","gitHead":"fdfdb29649c6668a6ad99b1915c3cdb8f4cb97ce","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"integrity":"sha512-zKDM4KJaZvNQXZApTqhctoQ+jfOmQAO8IIxg/rHImFMKP2DlRoe5Wy4REcmX9gYQbHAPyWXb3nXDuHfNGl8J1g==","shasum":"5291c25272b19af9a7a0ba10e22a84752377853e","tarball":"http://registry-npm.ywwl.com/ink-link/download/ink-link-4.0.0.tgz","fileCount":5,"unpackedSize":6377,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfPbZoGNVABB73RkxiDxLmhvcC9TK/ecmtVelY/UdbdAiBiCw+fhTdd1ppegKrO81abxc3FXzAaZHtssURr0v50Fg=="}],"size":2495,"noattachment":false,"key":"/ink-link/-/ink-link-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_4.0.0_1717170911002_0.9249340383521254"},"_hasShrinkwrap":false,"readme":"# ink-link\n\n> Link component for [Ink](https://github.com/vadimdemedes/ink)\n\nCreates clickable links in the terminal!\n\n<img src=\"screenshot.png\" width=\"332\">\n\n## Install\n\n```sh\nnpm install ink-link\n```\n\n## Usage\n\n```js\nimport React from 'react';\nimport {render, Text} from 'ink';\nimport Link from 'ink-link';\n\nrender(\n\t<Link url=\"https://sindresorhus.com\">\n\t\tMy <Text color=\"cyan\">Website</Text>\n\t</Link>\n);\n```\n\n## API\n\n### `<Link>`\n\n[Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda)\n\nFor unsupported terminals, the link will be printed in parens after the text: `My website (https://sindresorhus.com)`.\n\n#### url\n\nType: `string`\n\nThe URL to link to.\n\n#### fallback\n\nType: `boolean`\\\nDefault: `true`\n\nDetermines whether the URL should be printed in parens after the text for unsupported terminals: `My website (https://sindresorhus.com)`.\n\n## Related\n\n- [terminal-link](https://github.com/sindresorhus/terminal-link) - Create clickable links in the terminal\n- [ink-gradient](https://github.com/sindresorhus/ink-gradient) - Gradient color component for Ink\n- [ink-big-text](https://github.com/sindresorhus/ink-big-text) - Awesome text component for Ink\n","publish_time":1717170911154,"_cnpm_publish_time":1717170911154,"dist-tags":{"latest":"5.0.0"}}