{"name":"ink-link","version":"3.0.0","keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"ink-link@3.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/ink-link#readme","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"xo":{"extends":["xo-react"]},"ava":{"color":true,"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"dist":{"shasum":"660c44fdea777516e640e7776a3d647fb897dfd9","tarball":"http://registry-npm.ywwl.com/ink-link/download/ink-link-3.0.0.tgz","fileCount":5,"integrity":"sha512-S8jbyJQhYluCYn+O2dZ9I+Ts0OfpuXmRVJ3qNU+L4XCQEE2k4Vb0dO1Wu/QsArEXabQK7Q/DLtZ1ozLVBNGypQ==","signatures":[{"sig":"MEQCICl7Y12BzzsTBcOWLZovYO5vQ1EM9RlzG/q3tALI/gFnAiBkasgJnP6dKnZMmg1Ci87TXvF6SLmHa8opmdW4rF9rZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6452,"size":2477,"noattachment":false,"key":"/ink-link/-/ink-link-3.0.0.tgz"},"type":"module","engines":{"node":">=16"},"exports":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"ad498f443d6e7b81de228bf0048a4c55e0b06e20","scripts":{"test":"xo && ava","build":"tsc","pretest":"npm run build","prepublish":"npm run build"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/ink-link.git","type":"git"},"_npmVersion":"9.2.0","description":"Link component for Ink","directories":{},"_nodeVersion":"16.20.0","dependencies":{"prop-types":"^15.8.1","terminal-link":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.54.2","ava":"^5.3.0","ink":"^4.2.0","react":"^18.2.0","ts-node":"^10.9.1","typescript":"^5.1.3","@types/react":"^18.2.10","eslint-plugin-react":"^7.32.2","ink-testing-library":"^3.0.0","@sindresorhus/tsconfig":"^3.0.1","eslint-config-xo-react":"^0.27.0","eslint-plugin-react-hooks":"^4.6.0"},"peerDependencies":{"ink":">=4"},"_npmOperationalInternal":{"tmp":"tmp/ink-link_3.0.0_1686396798882_0.9244812157850213","host":"s3://npm-registry-packages"},"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":1686396799130,"_cnpm_publish_time":1686396799130,"dist-tags":{"latest":"5.0.0"}}