{"name":"ink-link","version":"1.1.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@1.1.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},"dist":{"shasum":"e00bd68dfd163a9392baecc0808391fd07e6cfbb","tarball":"http://registry-npm.ywwl.com/ink-link/download/ink-link-1.1.0.tgz","fileCount":5,"integrity":"sha512-a716nYz4YDPu8UOA2PwabTZgTvZa3SYB/70yeXVmTOKFAEdMbJyGSVeNuB7P+aM2olzDj9AGVchA7W5QytF9uA==","signatures":[{"sig":"MEUCIGz3CdE7llcnrXFaq0Yu67WX6mphnQ0+RWdHJDxnrobpAiEAxgxrW3gRovJpG+vFqn/O62D+ghuRfNY/Ftb5lZwRzMk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeit8SCRA9TVsSAnZWagAAi3MQAIPKYzl7g5oSv0iDmiQR\nBMaM4DIiNqz9DMpOSKjRS8M1niTxued8Il1ib3VfoLenW9faMRSwnqSe3J3t\n+B2b2/7RzUBVYAV22rRMny/AP/7y/sacRDgh8BnDGcAs0GgKDbYT8vrA/YCn\nKU0dxomthnwLeJDhEeiLTmwHxKvdFhOyAdzF+Ly/KNwrWDRS9mg4F0uuYojQ\nj3p5CP8paEfS75BNztSoKKYYsx7CdPpuyANcOt87z/Z41YoVZhclL6wEHZcs\nu7d1ac5yWjbSKj8G1Zso3Vq+8ywUZ+8XsxfOF3LoJhkl6cSw8Zw+yPtHVhqs\ndzgfK8HeVS53wUtBCHADahUVTzoF00SpY8Gu7UaNf4BekY2TweDBAU4pvpsf\n/aH1y0bSVFCA0tKehIAaOnOboo7eCxA8bHNvHUSl9w7ba2H4Uq28zXpoI0F3\nlF2Qa8hL1W2OEfmVvy3vIPNneKfdnhm5+FCMF91MFCrwbnUMTZvABJlipRjr\nSMsJxNwRsHoCs6dB9MbDnUtDDTgUISJVDA3u0l8qn/N3bRDhSG4kVB+g2Owz\nZJ8olc1t4j5e28ZNAE2sKrNPyspDQ0Xy9ZnDaGSApuP8BQVg+q6l5syMFwYP\nQJhZXIZQ8OIckBc0V/PKzM6Z6hvSWk1x4ARdyiLfeb5oKtTeaOd1ltgGj8+p\ndoXE\r\n=htPk\r\n-----END PGP SIGNATURE-----\r\n","size":2529,"noattachment":false,"key":"/ink-link/-/ink-link-1.1.0.tgz"},"main":"dist.js","babel":{"presets":["@ava/stage-4","@babel/preset-react"]},"engines":{"node":">=8"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"4d98cfb117fc7fd8adda3c12bc9bd14b248554ee","scripts":{"test":"xo && ava && tsd","build":"babel index.js --out-file=dist.js","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":"6.13.4","description":"Link component for Ink","directories":{},"_nodeVersion":"10.19.0","dependencies":{"prop-types":"^15.7.2","terminal-link":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.3.1","ink":"^2.0.3","tsd":"^0.11.0","react":"^16.8.2","@babel/cli":"^7.2.3","@babel/core":"^7.3.3","@types/react":"^16.9.16","clear-module":"^3.1.0","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.7.0","ink-testing-library":"^1.0.0","eslint-config-xo-react":"^0.19.0","eslint-plugin-react-hooks":"^1.4.0"},"peerDependencies":{"ink":">=2.0.0","react":">=16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/ink-link_1.1.0_1586159377981_0.31255896292944074","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":1586159378090,"_cnpm_publish_time":1586159378090,"dist-tags":{"latest":"5.0.0"}}