{"name":"supports-hyperlinks","version":"2.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":">=8"},"scripts":{"test":"xo && nyc ava"},"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","xo":"^0.24.0"},"nyc":{"reporter":["lcov","text"]},"gitHead":"d69899797030a99ebf024b0c74e13027c99a6986","bugs":{"url":"https://github.com/jamestalmage/supports-hyperlinks/issues"},"homepage":"https://github.com/jamestalmage/supports-hyperlinks#readme","_id":"supports-hyperlinks@2.0.0","_nodeVersion":"10.14.1","_npmVersion":"6.10.1","dist":{"integrity":"sha512-bFhn0MQ8qefLyJ3K7PpHiPUTuTVPWw6RXfaMeV6xgJLXtBbszyboz1bvGTVv4R0YpQm2DqlXXn0fFHhxUHVE5w==","shasum":"b1b94a159e9df00b0a554b2d5f0e0a89690334b0","tarball":"http://registry-npm.ywwl.com/supports-hyperlinks/download/supports-hyperlinks-2.0.0.tgz","fileCount":5,"unpackedSize":6492,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdL2TACRA9TVsSAnZWagAAhAwQAI3h8odGZAy2qwECSZKL\niGsoE5cz0HBsJzI6uWdn7RcQxt61HTuKEWNuhtVqzxE/HUSFDpPEk4DllK+s\n7F8klvWnzcNsFiXADkA/HiZ5b1P/nkgbT6kZ5q1I4qWWoZi2tA7CALhGw+bz\n6AO4zW5nrtz8vC1L5K6O2ayTPS8TPCXTBEb0By1G+BCLCXtGsaWWcW/vTgrs\nLqow8+ApzFQVBNVLzem0OuCD1Cs2tXTtn/mlyfKoO7bNp6VmqOO5PWxKzrY3\nj+36b8/xwgnQl2fzCrQu+7YBGwltoZDGd4LDW6TyQSqYbJX5ALsRIwzzAh8p\nrSGb9Y+1fuWQxbh2VqU53Cvmd+MMOANZzV0la/8K/vbCrGYImKQfopHdEwLI\n+qu4DKTZIWlhhQ683xFgMW+EVuQ+AuB8ukL4pVFI3So9vVZsIEjGsgV1g/gq\nmmoSZB9db1eGDZRLmw9GWCcLdhRrsWtcEBX1Pv7AL+wNJiUdSlyHX1oFsHMJ\njyiovn6e7l1FluQRIvEPrKanZVeAflFLVLzeVBco7IFdWVg4IX9KH7GS7oCo\nkQBVP5+Pm6a1vLvAXikSa4dwQrOVywKSKW6lKv2DJDFfmlwIjeVLHqN59lVa\nGb/82litdwkuamQIhouInQdwKMiSwuqZkcGV19a6IRG1NvdM9qQC5DRlcDF9\nyYoS\r\n=DyfU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHLsIah072lgUvwGHD0Xh9xfh1SeGdl4aGmVYQ7rmVgAiBVlHaqWn1w9HO5Q4TKQljOmTG9+ujq7v694Re6ZMioiQ=="}],"size":2942,"noattachment":false,"key":"/supports-hyperlinks/-/supports-hyperlinks-2.0.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.0.0_1563387072109_0.9532700614996101"},"_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":1563387072257,"_cnpm_publish_time":1563387072257,"dist-tags":{"latest":"5.0.0"}}