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
108 lines (107 loc) • 2.32 kB
JSON
{
"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": "3.0.0",
"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": {
"@eslint/js": "^10.0.1",
"@types/node": "^25.7.0",
"eslint": "^10.3.0",
"globals": "^17.6.0",
"gulp-format-md": "^2.0.0",
"jiti": "^2.7.0",
"prettier": "^3.8.3",
"ts-mocha": "^11.1.0",
"tsconfig-paths": "^4.2.0",
"tsup": "^8.5.1",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.3"
},
"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": [
"emit-keypress",
"cross-capture",
"enquirer",
"open-file-manager",
"open-file-manager-dialog",
"open-finder-dialog",
"open-linux-file-dialog",
"open-windows-file-dialog"
],
"lint": {
"reflinks": true
}
}
}