{"name":"supports-hyperlinks","version":"2.2.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":"66834a8a4ccc07f9af6364778fcaa0666b61eccb","bugs":{"url":"https://github.com/jamestalmage/supports-hyperlinks/issues"},"homepage":"https://github.com/jamestalmage/supports-hyperlinks#readme","_id":"supports-hyperlinks@2.2.0","_nodeVersion":"14.3.0","_npmVersion":"7.8.0","dist":{"integrity":"sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==","shasum":"4f77b42488765891774b70c79babd87f9bd594bb","tarball":"http://registry-npm.ywwl.com/supports-hyperlinks/download/supports-hyperlinks-2.2.0.tgz","fileCount":5,"unpackedSize":6705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbOqGCRA9TVsSAnZWagAAYakQAJ8Zz6aP8cN/CY9IjCdw\nPv4bpxlA4ltQjRyRq1xtLySDRAwOd4vUG1Af6sBY4UxkR6tnAaeEdx9b0yiP\njPw6DVl4BEMzBzi21dGgmIW3OuwZhyE4tfAn3SySrwWCuMeN/GUp/AE5pKwC\nfVu8GyBXzRWig+4+2WttmN43uzCXc67oCiDBBqA4sqBhHu5XtY0XCU8PVZdB\n+9bUspbi9stzUycDAIl3fq8RfDOth/LOKRFVQGk4/dnfQE/xJIiR6eDcm7G+\nuZ2K3ebtydj+QCxXheKa+4+Ly+SJ/DBrZLVvVgJf0pULeetyAspMVIPUCiwx\nV6dZZf+kubHbnwORkcZ1VriaB4a0a3JdQjeCDQ1+Gy2Vxats3jwJTbM2ru33\nSQ68+4n10qbS8dA994LK5ouEM4PiuEnY2NKsTKuytBdq8ozxHmZKPJnb58GX\nqhyezKRbk4oiv+Z0q9HqeudMvrkurROWle1Wt+7PxRGIsii3FJ704q7BFFC9\n2zZVksPOIqjreKgijjPK6Z07vQxjoTQ5tlUnJWQkCaZ+W6axzy8LwrsmToV1\nHsQMcp8DE6LxyantM8jM8Fm53MZwZiSUHSMbYs8ogQrYTR32+JKsDJMmK4Ga\n4pgHvLUbD8TC0q4MKSflgyan7TuS28h/LOgRpL5PCfb0UQ+NAKaQz0WZK4Ej\nNdbN\r\n=cSn4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUIl/BS5T8rtkaY53rjQIjyrpCz0bFZ9shuUqgxckEMQIhANdTXbqncV7BB721AhmdZlSJJfKPcSyp5N43E1YXXp5a"}],"size":3011,"noattachment":false,"key":"/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz"},"_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"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_2.2.0_1617750662491_0.6291010861567068"},"_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":1617750662630,"_cnpm_publish_time":1617750662630,"dist-tags":{"latest":"5.0.0"}}