{"name":"supports-hyperlinks","version":"2.1.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":">=8"},"scripts":{"prepublishOnly":"npm run create-types","test":"xo && nyc ava","create-types":"tsc index.js --allowJs  --declaration --emitDeclarationOnly"},"browser":"browser.js","keywords":["link","terminal","hyperlink","cli"],"dependencies":{"has-flag":"^4.0.0","supports-color":"^7.0.0"},"devDependencies":{"ava":"^2.2.0","codecov":"^3.5.0","nyc":"^14.1.1","typescript":"^3.7.2","xo":"^0.24.0"},"nyc":{"reporter":["lcov","text"]},"gitHead":"6af53f634749394fea2de362b7866f0a57d44607","bugs":{"url":"https://github.com/jamestalmage/supports-hyperlinks/issues"},"homepage":"https://github.com/jamestalmage/supports-hyperlinks#readme","_id":"supports-hyperlinks@2.1.0","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==","shasum":"f663df252af5f37c5d49bbd7eeefa9e0b9e59e47","tarball":"http://registry-npm.ywwl.com/supports-hyperlinks/download/supports-hyperlinks-2.1.0.tgz","fileCount":5,"unpackedSize":6661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePKvFCRA9TVsSAnZWagAAXYMQAJwAOq1397DihzVyEUAa\nzEGeQmfvqSABOWITH7isRwl4+SmxKkOIh7IEZf/FaNfzOZ9o/TvAERuufQjQ\nL4Bq/rusbFAQI4XQ3rq7yPwdf80GmT3DGMlbqMwG7eTVx00Px+naNaSq7XdU\nM5Bc07cMwV7MC+sj6rU5fwmplmBlZ/Gm2x1FtITaKii/7nQZurT2BXpKX2Uu\nDcVe6PQcyh66f2frbYecU/Lm42Ltrr/TSOvHgEgq7/tTQPOSpeDuv0op4ilf\n0Og5HWciWqVwhq1GaaArs/yeDDBHPzOKrSbQuZk6JKJARNxSO5ODZeelGYk+\nVIhNvE2oxIph/63zQrQ6PtzgvNCvzGVYZDvRhL2lS7FYkLupYnyDinBXADXB\n8sfy2fY5CNhNdh+UoY35oIP7UIPPCWeNcz/uT/49Gnn4bS15vCaoyJ5Pqj4H\n9yWRdgwLtFxFmE+PaQpmmPtE+ZJpfo7+9PF3qJXa/sCaeB8zJdGcsS90knvS\nVLeJHw3bJdsw4YbICrQ/GxWUtvFLmlEs73z0xOlc+5+SazreJMqhbgna1pk1\nPa6sZB8UAD5Nf4EQncIJ2OaRtDXqWhpJxn5aMowqb7vlU1cZbnt5L44ZfgMH\n5LR4RhBqbDJw1Dy6+JF+cqoOqiZBva0MXKS6bnCkZgV9WapaVFxO5kI/CPSa\nadn1\r\n=ROZL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4zOks9FG554l+eNGrbgoqcFGEGM16DzdeyJDlLPfjhAiB8MUJmGvZbgD2nKE6TX+CBop/4yT9yWZLvy9rvIG5tZA=="}],"size":3016,"noattachment":false,"key":"/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/supports-hyperlinks_2.1.0_1581034437069_0.3445899160452104"},"_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":1581034437198,"_cnpm_publish_time":1581034437198,"dist-tags":{"latest":"5.0.0"}}