{"name":"supports-hyperlinks","version":"2.3.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"]},"types":"./index.d.ts","gitHead":"4cb672f76ca566f82c541b2a177aa6205875a0a6","bugs":{"url":"https://github.com/jamestalmage/supports-hyperlinks/issues"},"homepage":"https://github.com/jamestalmage/supports-hyperlinks#readme","_id":"supports-hyperlinks@2.3.0","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"integrity":"sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==","shasum":"3943544347c1ff90b15effb03fc14ae45ec10624","tarball":"http://registry-npm.ywwl.com/supports-hyperlinks/download/supports-hyperlinks-2.3.0.tgz","fileCount":5,"unpackedSize":6927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCINlSJrlv5+AAxu7IaNCsMY3jUbKh7BUM9z98CcTj+2QIgKx3ONsLRqGG7QMKig1PFjKaXjhQ9XaKTt9VNWJKRLvU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFtLJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUcg//XtK3j5pI4ujqdChc9v2POaLAWr2HY0pOSjWPPv56vcLykpiI\r\nuWcXIQT+PjFxJfOoZ+BpQ1ceHF9Mx5zX6DOA58yOSrhVli2FW7CiSFzl6HND\r\nXAHqbFYnE+o7H1gzx0f5wikQFGyLnt2OJfHzyPAyuStGjChMr0s9eY1Y1aw3\r\n+SC0hQL3PjiLwp0wmW/HLrk42o/z0uGVG7DFKQ71ofSu+9Mb78t7Joc4YTdr\r\n3l9gYJDsOfNUk/DP6B80PNCvf9KEp76Qf/rMOuiCH0jMb9emF/MFY+OazcYG\r\nQmjs89J9BduCjkBCyYIb/dQNJh5WRNKZS91qJvaw1m1y/SVwwEZjso+NJY2t\r\npprtaPtsxFwx3FoJELeW7rKVBBN9TuMJvfW3qRm92W1UNhuzKkj7xwORdYRO\r\nMV/Bc597cobM80rKTv1Ynj91E5f1jSjqth2QV16f9wlLLWjsy78VIq4kUTV3\r\nahLCKYMPvJHk1zrDq5ynhnEN1mhAMOID8ziTr6Tx9HT11oJjvsdAnM4yT3Ne\r\nPlDUmwO+n0/OAZx5V9GWXoYY7+wjmsunlbDD6pKH8xkJWk76ozkC7csV3ttF\r\nDt5Khfqf8gYco2R255t5J4k4cdxp1DjQlNOM3jqyx0Co8/Z3H091Hxq5u/Xk\r\nCxO1b+v3vUDnCwAYaDtG/zZbkiPegY5ylKA=\r\n=D83M\r\n-----END PGP SIGNATURE-----\r\n","size":3083,"noattachment":false,"key":"/supports-hyperlinks/-/supports-hyperlinks-2.3.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_2.3.0_1662440136874_0.16153616125736447"},"_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":1662440137030,"_cnpm_publish_time":1662440137030,"dist-tags":{"latest":"5.0.0"}}