1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00
denoland-deno/ext/node
Marvin Hagemeister a2ca399227
fix(node): support tty.hasColors() and tty.getColorDepth() (#24619)
This PR adds support for
[`tty.WriteStream.prototype.hasColors()`](https://nodejs.org/api/tty.html#writestreamhascolorscount-env)
and
[`tty.WriteStream.prototype.getColorDepth()`](https://nodejs.org/api/tty.html#writestreamgetcolordepthenv).

I couldn't find any usage on GitHub which passes parameters to it.
Therefore I've skipped adding support for the `env` parameter to keep
our snapshot size small.

Based on https://github.com/denoland/deno_terminal/pull/3

Fixes https://github.com/denoland/deno/issues/24616
2024-07-22 22:47:58 +02:00
..
benchmarks fix: implement child_process IPC (#21490) 2023-12-13 11:14:16 +01:00
ops fix(ext/node): stat.mode on windows (#24434) 2024-07-22 22:47:57 +02:00
polyfills fix(node): support tty.hasColors() and tty.getColorDepth() (#24619) 2024-07-22 22:47:58 +02:00
analyze.rs refactor: use concrete error types for node resolution (#24470) 2024-07-09 12:15:03 -04:00
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml Reland "refactor(fetch): reimplement fetch with hyper instead of reqwest" (#24593) 2024-07-22 22:47:57 +02:00
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
errors.rs refactor(node): internally add .code() to node resolution errors (#24610) 2024-07-22 22:47:08 +02:00
global.rs fix(ext/node): do not expose self global in node (#24637) 2024-07-22 22:47:58 +02:00
lib.rs perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-22 22:47:08 +02:00
package_json.rs refactor(node): internally add .code() to node resolution errors (#24610) 2024-07-22 22:47:08 +02:00
path.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
polyfill.rs fix(node): add missing readline/promises module (#24336) 2024-06-25 19:15:54 -04:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs refactor(node): internally add .code() to node resolution errors (#24610) 2024-07-22 22:47:08 +02:00

deno_node

require and other node related functionality for Deno.