{"id":28635560,"url":"https://github.com/chalk/supports-hyperlinks","last_synced_at":"2025-06-12T17:11:01.379Z","repository":{"id":275392193,"uuid":"925949190","full_name":"chalk/supports-hyperlinks","owner":"chalk","description":"Detect whether a terminal supports hyperlinks","archived":false,"fork":false,"pushed_at":"2025-05-10T06:50:52.000Z","size":34,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T05:33:40.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chalk.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-02T06:27:39.000Z","updated_at":"2025-05-10T06:50:55.000Z","dependencies_parsed_at":"2025-02-02T07:36:02.562Z","dependency_job_id":null,"html_url":"https://github.com/chalk/supports-hyperlinks","commit_stats":null,"previous_names":["chalk/supports-hyperlinks"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/chalk/supports-hyperlinks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fsupports-hyperlinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fsupports-hyperlinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fsupports-hyperlinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fsupports-hyperlinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chalk","download_url":"https://codeload.github.com/chalk/supports-hyperlinks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fsupports-hyperlinks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509474,"owners_count":22868837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-12T17:11:00.723Z","updated_at":"2025-06-12T17:11:01.355Z","avatar_url":"https://github.com/chalk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# supports-hyperlinks\n\n\u003e Detect whether a terminal 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```sh\nnpm install supports-hyperlinks\n```\n\n## Usage\n\n```js\nimport supportsHyperlinks from '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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalk%2Fsupports-hyperlinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchalk%2Fsupports-hyperlinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalk%2Fsupports-hyperlinks/lists"}