{"_id":"ink-link","_rev":"4100707","name":"ink-link","description":"Link component for Ink","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-01-11T18:38:14.000Z","created":"2018-03-30T03:58:40.648Z","5.0.0":"2025-09-13T13:24:21.965Z","4.1.0":"2024-07-03T22:47:39.838Z","4.0.0":"2024-05-31T15:55:11.154Z","3.0.0":"2023-06-10T11:33:19.130Z","2.0.1":"2022-12-23T12:54:56.121Z","2.0.0":"2020-08-10T18:57:04.748Z","1.1.0":"2020-04-06T07:49:38.090Z","1.0.0":"2019-03-07T05:15:48.010Z","0.2.0":"2018-04-04T18:07:19.932Z","0.1.0":"2018-03-30T03:58:40.648Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/ink-link.git"},"versions":{"5.0.0":{"name":"ink-link","version":"5.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 --react && NODE_OPTIONS='--import=tsx/esm' FORCE_COLOR=1 node --test test.tsx","build":"tsc"},"keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"terminal-link":"^5.0.0"},"peerDependencies":{"ink":">=6"},"devDependencies":{"@sindresorhus/tsconfig":"^8.0.1","@types/prop-types":"^15.7.15","@types/react":"^19.1.13","eslint-config-xo-react":"^0.28.0","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","ink":"^6.3.0","ink-testing-library":"^4.0.0","react":"^19.1.1","tsx":"^4.20.5","typescript":"^5.9.2","xo":"^1.2.2"},"xo":{"rules":{"@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-assignment":"off","react/function-component-definition":"off","react/react-in-jsx-scope":"off","react/jsx-closing-tag-location":"off"}},"_id":"ink-link@5.0.0","gitHead":"84b6c091d66de61e57049e3d78e789b2500184f7","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"31e3ef535c8c29c3473819e14e5932b5cba733c3","size":2529,"noattachment":false,"key":"/ink-link/-/ink-link-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ink-link_5.0.0_1757769861796_0.42215818977088215"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-13T13:24:21.965Z","publish_time":1757769861965,"_source_registry_name":"default","_cnpm_publish_time":1757769861965},"4.1.0":{"name":"ink-link","version":"4.1.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.1.0","gitHead":"a3aef0b092d6a3d6773f7ed6009395530d8167c7","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":{"shasum":"6da41c9f24e72c37fa12780ba9a3edd27efe3d48","size":2487,"noattachment":false,"key":"/ink-link/-/ink-link-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-4.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_4.1.0_1720046859615_0.6028621394201554"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-03T22:47:39.838Z","publish_time":1720046859838,"_source_registry_name":"default","_cnpm_publish_time":1720046859838},"4.0.0":{"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":{"shasum":"5291c25272b19af9a7a0ba10e22a84752377853e","size":2495,"noattachment":false,"key":"/ink-link/-/ink-link-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_4.0.0_1717170911002_0.9249340383521254"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-31T15:55:11.154Z","publish_time":1717170911154,"_source_registry_name":"default","_cnpm_publish_time":1717170911154},"3.0.0":{"name":"ink-link","version":"3.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":">=16"},"scripts":{"pretest":"npm run build","prepublish":"npm run build","test":"xo && 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":"^3.0.1","@types/react":"^18.2.10","ava":"^5.3.0","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","ink":"^4.2.0","ink-testing-library":"^3.0.0","react":"^18.2.0","ts-node":"^10.9.1","typescript":"^5.1.3","xo":"^0.54.2"},"ava":{"color":true,"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"extends":["xo-react"]},"gitHead":"ad498f443d6e7b81de228bf0048a4c55e0b06e20","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_id":"ink-link@3.0.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"660c44fdea777516e640e7776a3d647fb897dfd9","size":2477,"noattachment":false,"key":"/ink-link/-/ink-link-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_3.0.0_1686396798882_0.9244812157850213"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-10T11:33:19.130Z","publish_time":1686396799130,"_source_registry_name":"default","_cnpm_publish_time":1686396799130},"2.0.1":{"name":"ink-link","version":"2.0.1","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"},"main":"dist.js","engines":{"node":">=10"},"scripts":{"build":"babel index.js --out-file=dist.js","prepublish":"npm run build","pretest":"npm run build","test":"xo && ava && tsd"},"keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"prop-types":"^15.7.2","terminal-link":"^2.1.1"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.3","@babel/preset-react":"^7.0.0","@types/react":"^16.9.16","ava":"^1.3.1","clear-module":"^4.1.1","eslint-config-xo-react":"^0.23.0","eslint-plugin-react":"^7.7.0","eslint-plugin-react-hooks":"^4.0.8","ink":"^3.0.3","ink-testing-library":"^2.0.1","react":"^16.8.2","tsd":"^0.13.1","xo":"^0.33.0"},"peerDependencies":{"ink":">=3.0.0","react":">=16.8.0"},"babel":{"presets":["@ava/stage-4","@babel/preset-react"]},"ava":{"color":true},"xo":{"extends":["xo-react"]},"gitHead":"b8e80ee653fb8be7301317ff00cf4fab198757a7","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_id":"ink-link@2.0.1","_nodeVersion":"14.21.1","_npmVersion":"8.19.2","dist":{"shasum":"5fdb8939f63fce629b929371fb643e5284756bf6","size":2597,"noattachment":false,"key":"/ink-link/-/ink-link-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-2.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_2.0.1_1671800095959_0.478391754118618"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-23T12:55:05.379Z","publish_time":1671800096121,"_cnpm_publish_time":1671800096121},"2.0.0":{"name":"ink-link","version":"2.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"},"main":"dist.js","engines":{"node":">=10"},"scripts":{"build":"babel index.js --out-file=dist.js","prepublish":"npm run build","pretest":"npm run build","test":"xo && ava && tsd"},"keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"prop-types":"^15.7.2","terminal-link":"^2.1.1"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.3","@babel/preset-react":"^7.0.0","@types/react":"^16.9.16","ava":"^1.3.1","clear-module":"^4.1.1","eslint-config-xo-react":"^0.23.0","eslint-plugin-react":"^7.7.0","eslint-plugin-react-hooks":"^4.0.8","ink":"^3.0.3","ink-testing-library":"^2.0.1","react":"^16.8.2","tsd":"^0.13.1","xo":"^0.33.0"},"peerDependencies":{"ink":">=3.0.0","react":">=16.8.0"},"babel":{"presets":["@ava/stage-4","@babel/preset-react"]},"ava":{"color":true},"xo":{"extends":["xo-react"]},"gitHead":"70c43df8b2a23f17681db76b07704b661932c96a","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_id":"ink-link@2.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3e52135010398a4406f0e879baf8c118ddbb537f","size":2660,"noattachment":false,"key":"/ink-link/-/ink-link-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_2.0.0_1597085824624_0.5357840032333159"},"_hasShrinkwrap":false,"publish_time":1597085824748,"_cnpm_publish_time":1597085824748},"1.1.0":{"name":"ink-link","version":"1.1.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"},"main":"dist.js","engines":{"node":">=8"},"scripts":{"build":"babel index.js --out-file=dist.js","prepublish":"npm run build","pretest":"npm run build","test":"xo && ava && tsd"},"keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"prop-types":"^15.7.2","terminal-link":"^2.1.1"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.3","@babel/preset-react":"^7.0.0","@types/react":"^16.9.16","ava":"^1.3.1","clear-module":"^3.1.0","eslint-config-xo-react":"^0.19.0","eslint-plugin-react":"^7.7.0","eslint-plugin-react-hooks":"^1.4.0","ink":"^2.0.3","ink-testing-library":"^1.0.0","react":"^16.8.2","tsd":"^0.11.0","xo":"^0.24.0"},"peerDependencies":{"ink":">=2.0.0","react":">=16.8.0"},"babel":{"presets":["@ava/stage-4","@babel/preset-react"]},"ava":{"color":true},"xo":{"extends":["xo-react"]},"gitHead":"4d98cfb117fc7fd8adda3c12bc9bd14b248554ee","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_id":"ink-link@1.1.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e00bd68dfd163a9392baecc0808391fd07e6cfbb","size":2529,"noattachment":false,"key":"/ink-link/-/ink-link-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_1.1.0_1586159377981_0.31255896292944074"},"_hasShrinkwrap":false,"publish_time":1586159378090,"_cnpm_publish_time":1586159378090},"1.0.0":{"name":"ink-link","version":"1.0.0","description":"Link component for Ink","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ink-link.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"main":"dist.js","engines":{"node":">=8"},"scripts":{"build":"babel index.js --out-file=dist.js","prepublish":"npm run build","pretest":"npm run build","test":"xo && ava"},"keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"prop-types":"^15.7.2","terminal-link":"^1.2.0"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.3","@babel/preset-react":"^7.0.0","ava":"^1.3.1","clear-module":"^3.1.0","eslint-config-xo-react":"^0.19.0","eslint-plugin-react":"^7.7.0","eslint-plugin-react-hooks":"^1.4.0","ink":"^2.0.3","ink-testing-library":"^1.0.0","react":"^16.8.2","xo":"^0.24.0"},"peerDependencies":{"ink":">=2.0.0","react":">=16.8.0"},"babel":{"presets":["@ava/stage-4","@babel/preset-react"]},"ava":{"color":true},"xo":{"extends":["xo-react"]},"gitHead":"42fd0596d4a9eaefcdc8ad097b01c95994dfaf4f","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_id":"ink-link@1.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"622c348303b75ee1a6b017d48e5e19c29db596fa","size":2224,"noattachment":false,"key":"/ink-link/-/ink-link-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_1.0.0_1551935747834_0.07169233359833593"},"_hasShrinkwrap":false,"publish_time":1551935748010,"_cnpm_publish_time":1551935748010},"0.2.0":{"name":"ink-link","version":"0.2.0","description":"Link component for Ink","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ink-link.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"main":"dist.js","engines":{"node":">=6"},"scripts":{"build":"babel index.js --out-file=dist.js","prepublish":"npm run build","pretest":"npm run build","test":"xo && ava"},"files":["dist.js"],"keywords":["ink-component","ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"prop-types":"^15.6.1","terminal-link":"^1.0.0"},"devDependencies":{"ava":"*","babel-cli":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","clear-module":"^2.1.0","eslint-config-xo-react":"^0.16.0","eslint-plugin-react":"^7.7.0","ink":"^0.4.1","xo":"*"},"babel":{"presets":["@ava/stage-4"],"plugins":[["transform-react-jsx",{"pragma":"h","useBuiltIns":true}]]},"ava":{"babel":"inherit"},"xo":{"extends":["xo-react"],"ignores":["dist.js"],"settings":{"react":{"pragma":"h"}}},"gitHead":"6f1444e3c39aebe49e4b147e5532242cfa39523e","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_id":"ink-link@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b9e20624d87f4a771b8b818d07878e7fc06b3b1f","size":2202,"noattachment":false,"key":"/ink-link/-/ink-link-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_0.2.0_1522865239886_0.5920318459822906"},"_hasShrinkwrap":false,"publish_time":1522865239932,"_cnpm_publish_time":1522865239932},"0.1.0":{"name":"ink-link","version":"0.1.0","description":"Link component for Ink","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ink-link.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"main":"dist.js","engines":{"node":">=6"},"scripts":{"build":"babel index.js --out-file=dist.js","prepublish":"npm run build","pretest":"npm run build","test":"xo && ava"},"files":["dist.js"],"keywords":["ink","component","link","hyperlink","url","react","jsx","terminal","term","console","command-line"],"dependencies":{"ansi-escapes":"^3.1.0","prop-types":"^15.6.1","supports-hyperlinks":"^1.0.1"},"devDependencies":{"ava":"*","babel-cli":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","clear-module":"^2.1.0","eslint-config-xo-react":"^0.16.0","eslint-plugin-react":"^7.7.0","ink":"^0.4.1","xo":"*"},"babel":{"presets":["@ava/stage-4"],"plugins":[["transform-react-jsx",{"pragma":"h","useBuiltIns":true}]]},"ava":{"babel":"inherit"},"xo":{"extends":["xo-react"],"ignores":["dist.js"],"settings":{"react":{"pragma":"h"}}},"gitHead":"b2c7c2dc79ac517923af8de50b7bb6a99a278979","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"homepage":"https://github.com/sindresorhus/ink-link#readme","_id":"ink-link@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"99eb5dc4ffee39f756747cd212832881e2a84067","size":2129,"noattachment":false,"key":"/ink-link/-/ink-link-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ink-link/download/ink-link-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ink-link_0.1.0_1522382320485_0.19947887492251604"},"_hasShrinkwrap":false,"publish_time":1522382320648,"_cnpm_publish_time":1522382320648}},"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 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 | (text: string, url: string) => string`\\\nDefault: `true`\n\nDetermines whether the URL should be printed after the text for unsupported terminals: `My website https://sindresorhus.com`.\n\nCan also be a function that receives the text and URL and returns a custom fallback string.\n\n```js\n<Link url=\"https://sindresorhus.com\" fallback={(text, url) => `[${text}](${url})`}>\n\tMy Website\n</Link>\n```\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","_attachments":{},"homepage":"https://github.com/sindresorhus/ink-link#readme","bugs":{"url":"https://github.com/sindresorhus/ink-link/issues"},"license":"MIT"}