UNPKG

detect-terminal

Version:

Detect the terminal program currently being used, with support for iTerm, Terminal.app, Hyper, iTerm2, ConEmu, Cmde,r Alacritty, Xterm, Terminator, Termux, Kitty, and others. Detection is based on environment variables and process-level indicators to iden

105 lines (104 loc) 2.3 kB
{ "name": "detect-terminal", "description": "Detect the terminal program currently being used, with support for iTerm, Terminal.app, Hyper, iTerm2, ConEmu, Cmde,r Alacritty, Xterm, Terminator, Termux, Kitty, and others. Detection is based on environment variables and process-level indicators to identify the terminal in use. This can't be done reliably in all cases, but it's useful when available.", "version": "1.1.2", "license": "MIT", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "scripts": { "clean": "rm -rf dist", "eslint": "npx eslint --ext .ts .", "tsup": "npm run clean && npx tsup" }, "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ "dist" ], "devDependencies": { "@types/node": "^20.12.7", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", "esbuild-register": "^3.5.0", "eslint": "^8.57.0", "gulp-format-md": "^2.0.0", "prettier": "^3.5.3", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", "tsup": "^8.3.0", "typescript": "^5.4.5" }, "keywords": [ "alacritty", "bash", "cli", "cmder", "conemu", "conhost", "console", "csh", "detect", "dopamine", "env", "eterm", "fish", "gnome_terminal", "hyper", "iterm", "kitty", "konsole", "ksh", "linux_console", "mate_terminal", "node", "powershell", "putty", "qterminal", "rxvt", "screen", "sh", "tcsh", "term", "terminal app", "terminal_app", "terminal.app", "terminal", "terminator", "termux", "tmux", "truecolor_terminal", "vscode", "vt100", "warp", "wezterm", "windows_cmd", "windows_terminal", "xfce4_terminal", "xterm", "zsh" ], "verb": { "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "reflinks": [ "verb" ], "related": [ "open-file-manager", "open-file-manager-dialog", "open-finder-dialog", "open-linux-file-dialog", "open-windows-file-dialog" ], "lint": { "reflinks": true } } }