{"name":"supports-hyperlinks","version":"3.0.0","description":"Detect if your terminal emulator supports hyperlinks","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/supports-hyperlinks.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=14.18"},"scripts":{"prepublishOnly":"npm run create-types","test":"xo && nyc ava && tsc","create-types":"tsc --project declaration.tsconfig.json"},"browser":"browser.js","keywords":["link","terminal","hyperlink","cli"],"dependencies":{"has-flag":"^4.0.0","supports-color":"^7.0.0"},"devDependencies":{"@tsconfig/node14":"^1.0.3","@types/supports-color":"^8.1.1","ava":"^2.2.0","codecov":"^3.5.0","nyc":"^14.1.1","typescript":"^4.9.5","xo":"^0.24.0"},"nyc":{"reporter":["lcov","text"]},"types":"./index.d.ts","gitHead":"99da35502fdfe4b9eb0d650389c6557e6251ef3b","bugs":{"url":"https://github.com/jamestalmage/supports-hyperlinks/issues"},"homepage":"https://github.com/jamestalmage/supports-hyperlinks#readme","_id":"supports-hyperlinks@3.0.0","_nodeVersion":"18.14.2","_npmVersion":"9.2.0","dist":{"integrity":"sha512-QBDPHyPQDRTy9ku4URNGY5Lah8PAaXs6tAAwp55sL5WCsSW7GIfdf6W5ixfziW+t7wh3GVvHyHHyQ1ESsoRvaA==","shasum":"c711352a5c89070779b4dad54c05a2f14b15c94b","tarball":"http://registry-npm.ywwl.com/supports-hyperlinks/download/supports-hyperlinks-3.0.0.tgz","fileCount":6,"unpackedSize":7455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJIGjdvq2m3tRlii0lpk+lFd/DlneUdyz26vBagxZeYAIhAMwoeGi9OawU4hDuLkNZcBAchPeOX7SnSCaJj83I0BYl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCF3kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6rg//TY+tMNk0pdUTpTIJ9r+Cfy5VOXEut3IKzUDL9PsouqK2gIiR\r\nvIwvNnyz9HyG1yiGNC0IA8EexEORCQxiBnmLrHbhj8I3iPg5BH5CpDnFu426\r\nAFsA+lKZaL9txa7aNiAHjYd4lb1+mZ+7KS5FE1YVeGsXfsCvUz9+AN8bo7PM\r\nyXAyZo/DXoS8ZTVxOFU7raigqSZTdldj1RGg1DymF+jfZqgGfl20n2BNilSL\r\ngA8K+K5rpF1qLvhh0HIwph+pqpAsH/KhvKs30RmW07PZjlIu9W8ZVCu27nV7\r\n6jB9gx6NzUESAiVBu+Y7o2P+BQcqkqBZdf7HCwWYKcVINlPWfNqbeoLMVdxu\r\nTga7zgiFybhCQHb4i1J0ZFu9ZDEYeSZQ4vq7QgV0l6tpf7BccCEOQZJ8fpRk\r\nWsXx/vEEc5NQN5prI788R/IckM+Hoa0SJoGoafptBfP/5PgdKCtAlNIvg6cX\r\nKY/I635kKKEz4u9841JZwsGEQO86oXTe110/6TiP2MAjMhtjivtdyj+dlulq\r\nRbFdedoqWNu/tna2QaW7UVALgTpXwurfm0l9VlWlsq4m/hRffosHlBgGlQeX\r\nafmkAsLtwPN3MvqoDN/SWM3zWRKM/zdxevMpFGLo47xSp48Y2z6eYC3JV4Re\r\nr3qcBGSub9BtCajDVkRxOX+NvgLiuyxp+kY=\r\n=te3Q\r\n-----END PGP SIGNATURE-----\r\n","size":3282,"noattachment":false,"key":"/supports-hyperlinks/-/supports-hyperlinks-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"},{"name":"novemberborn","email":"mark@novemberborn.net"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/supports-hyperlinks_3.0.0_1678269924748_0.4712278572497024"},"_hasShrinkwrap":false,"readme":"# supports-hyperlinks [![Build Status](https://travis-ci.org/jamestalmage/supports-hyperlinks.svg?branch=master)](https://travis-ci.org/jamestalmage/supports-hyperlinks) [![codecov](https://codecov.io/gh/jamestalmage/supports-hyperlinks/badge.svg?branch=master)](https://codecov.io/gh/jamestalmage/supports-hyperlinks?branch=master)\n\n> Detect whether a terminal emulator supports hyperlinks\n\nTerminal emulators are [starting to support hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda). While many terminals have long detected URL's and linkified them, allowing you to Command-Click or Control-Click them to open a browser, you were forced to print the long unsightly URL's on the screen. As of spring 2017 [a few terminals](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) began supporting HTML like links, where the link text and destination could be specified separately.\n\nThis module allows you to detect if hyperlinks are supported in the current Terminal.\n\nAs this is a new development, we anticipate the list of supported Terminals to grow rapidly. Please open an issue or submit a PR as new Terminals implement support.\n\n## Install\n\n```\n$ npm install supports-hyperlinks\n```\n\n\n## Usage\n\n```js\nconst supportsHyperlinks = require('supports-hyperlinks');\n\nif (supportsHyperlinks.stdout) {\n\tconsole.log('Terminal stdout supports hyperlinks');\n}\n\nif (supportsHyperlinks.stderr) {\n\tconsole.log('Terminal stderr supports hyperlinks');\n}\n```\n\n## API\n\nReturns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is a `boolean`, indicating whether or not hyperlinks are supported.\n\n## Info\n\nObeys the `--no-hyperlinks`, `--hyperlink=always`, and `--hyperlink=never` CLI flags.\n\nCan be overridden by the user with the flags `--hyperlinks=always` and `--no-hyperlinks`. For situations where using those flags are not possible, add the environment variable `FORCE_HYPERLINK=1` to forcefully enable hyperlinks or `FORCE_HYPERLINK=0` to forcefully disable. The use of `FORCE_HYPERLINK` overrides all other hyperlink support checks.\n\n## Related\n\n  * [`hyperlinker`](https://github.com/jamestalmage/hyperlinker): Write hyperlinks for the Terminal.\n\n## License\n\nMIT © [James Talmage](https://github.com/jamestalmage)\n","publish_time":1678269924926,"_cnpm_publish_time":1678269924926,"dist-tags":{"latest":"5.0.0"}}