/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ext/node/polyfills/tty.js
16 строк
371 B
Nathan Whitaker
perf: lazy-load more modules in the snapshot (#34061)
19 май 2026, 02:37
Не верифицирован
19 май 2026, 02:37
eb4061f
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. (function () { const { core } = __bootstrap; const { TTY } = core.ops; // Returns true when the given numeric fd is associated with a TTY and false otherwise. function isatty(fd) { if (typeof fd !== "number" || fd >> 0 !== fd || fd < 0) { return false; } return TTY.isTTY(fd); } return { isatty }; })();