Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 20, 2024
1 parent e161d1d commit 0effcd8
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 55 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* text=auto
*.js text eol=lf
* text=auto eol=lf
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function supportsHyperlink(stream) {
}

// Windows Terminal
if ('WT_SESSION' in env) {
if ('WT_SESSION' in process.env) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage)
Copyright (c) James Talmage <james@talmage.io> (https://github.com/jamestalmage)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
104 changes: 55 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,57 @@
{
"name": "supports-hyperlinks",
"version": "3.0.0",
"description": "Detect if your terminal emulator supports hyperlinks",
"license": "MIT",
"repository": "jamestalmage/supports-hyperlinks",
"author": {
"name": "James Talmage",
"email": "james@talmage.io",
"url": "github.com/jamestalmage"
},
"engines": {
"node": ">=14.18"
},
"scripts": {
"prepublishOnly": "npm run create-types",
"test": "xo && nyc ava && tsc",
"create-types": "tsc --project declaration.tsconfig.json"
},
"files": [
"index.js",
"index.d.ts",
"browser.js"
],
"browser": "browser.js",
"keywords": [
"link",
"terminal",
"hyperlink",
"cli"
],
"dependencies": {
"has-flag": "^4.0.0",
"supports-color": "^7.0.0"
},
"devDependencies": {
"@tsconfig/node14": "^1.0.3",
"@types/supports-color": "^8.1.1",
"ava": "^2.2.0",
"codecov": "^3.5.0",
"nyc": "^14.1.1",
"typescript": "^4.9.5",
"xo": "^0.24.0"
},
"nyc": {
"reporter": [
"lcov",
"text"
]
}
"name": "supports-hyperlinks",
"version": "3.0.0",
"description": "Detect if your terminal emulator supports hyperlinks",
"license": "MIT",
"repository": "jamestalmage/supports-hyperlinks",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "James Talmage",
"email": "james@talmage.io",
"url": "github.com/jamestalmage"
},
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=14.18"
},
"scripts": {
"prepublishOnly": "npm run create-types",
"test": "xo && nyc ava && tsc",
"create-types": "tsc --project declaration.tsconfig.json"
},
"files": [
"index.js",
"index.d.ts",
"browser.js"
],
"browser": "browser.js",
"keywords": [
"link",
"terminal",
"hyperlink",
"cli"
],
"dependencies": {
"has-flag": "^4.0.0",
"supports-color": "^7.0.0"
},
"devDependencies": {
"@tsconfig/node14": "^1.0.3",
"@types/supports-color": "^8.1.1",
"ava": "^2.2.0",
"codecov": "^3.5.0",
"nyc": "^14.1.1",
"typescript": "^4.9.5",
"xo": "^0.24.0"
},
"nyc": {
"reporter": [
"lcov",
"text"
]
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ As this is a new development, we anticipate the list of supported Terminals to g

## Install

```
$ npm install supports-hyperlinks
```sh
npm install supports-hyperlinks
```


Expand Down

0 comments on commit 0effcd8

Please sign in to comment.