is-tty 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -54,9 +54,10 @@ if (isTTY()) {
|
|
|
54
54
|
| Condition | Interactive? |
|
|
55
55
|
| :--- | :---: |
|
|
56
56
|
| `process.stdout.isTTY === true` | ✅ |
|
|
57
|
-
| `CI
|
|
57
|
+
| `CI` env var is truthy (e.g., `true`, `1`, `github-actions`) | ❌ |
|
|
58
58
|
| `TERM=dumb` | ❌ |
|
|
59
|
-
|
|
|
59
|
+
| `process.stdin.isTTY === true` or `process.stderr.isTTY === true` | ✅ |
|
|
60
|
+
| None of the above | ❌ |
|
|
60
61
|
|
|
61
62
|
## License
|
|
62
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "is-tty",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "CLI tool to detect whether the current environment is interactive (TTY).",
|
|
5
5
|
"bin": {
|
|
6
6
|
"is-tty": "./src/cli.js"
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
"README.md",
|
|
36
36
|
"LICENSE"
|
|
37
37
|
]
|
|
38
|
-
}
|
|
38
|
+
}
|