{"name":"supports-hyperlinks","version":"1.0.1","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":">=4"},"scripts":{"test":"xo && nyc ava"},"files":["index.js","browser.js"],"browser":"browser.js","keywords":["link","terminal","hyperlink","cli"],"dependencies":{"has-flag":"^2.0.0","supports-color":"^5.0.0"},"devDependencies":{"ava":"^0.20.0","babel-preset-env":"^1.6.1","babel-preset-stage-3":"^6.24.1","codecov":"^2.2.0","nyc":"^11.0.0","xo":"^0.18.2"},"ava":{"babel":{"presets":["env","stage-3"]}},"nyc":{"reporter":["lcov","text"]},"gitHead":"fe34a2736bcb108c310d62e94284f610ed8b203b","bugs":{"url":"https://github.com/jamestalmage/supports-hyperlinks/issues"},"homepage":"https://github.com/jamestalmage/supports-hyperlinks#readme","_id":"supports-hyperlinks@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"integrity":"sha512-HHi5kVSefKaJkGYXbDuKbUGRVxqnWGn3J2e39CYcNJEfWciGq2zYtOhXLTlvrOZW1QU7VX67w7fMmWafHX9Pfw==","shasum":"71daedf36cc1060ac5100c351bb3da48c29c0ef7","tarball":"http://registry-npm.ywwl.com/supports-hyperlinks/download/supports-hyperlinks-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF6ahbqRjsf76xhH9yFBXgGVE52e+XmT2it1nyKglC9FAiAYJRJq/ybuwR7LoF1x8FTPrNp80leiHoJxMb9oBkudjg=="}],"size":2885,"noattachment":false,"key":"/supports-hyperlinks/-/supports-hyperlinks-1.0.1.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/supports-hyperlinks-1.0.1.tgz_1511833857356_0.612168702762574"},"directories":{},"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":1511833858193,"_cnpm_publish_time":1511833858193,"dist-tags":{"latest":"5.0.0"}}