https://github.com/jarred-sumner/which-term
Return which terminal is being used to run the current command.
https://github.com/jarred-sumner/which-term
Last synced: 4 months ago
JSON representation
Return which terminal is being used to run the current command.
- Host: GitHub
- URL: https://github.com/jarred-sumner/which-term
- Owner: Jarred-Sumner
- Created: 2021-02-17T08:17:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T08:24:31.000Z (over 4 years ago)
- Last Synced: 2025-02-26T14:16:57.868Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# which-term
Return which terminal is being used to run the current command.
## Installation
```
npm install which-term
```## Usage

index.ejs
```js
import { terminal } from "which-term";console.log(terminal);
// "iterm"
```index.mjs
```js
const { terminal } = require("which-term");console.log(terminal);
// "iterm"
``````ts
export declare enum Terminal {
Unknown = "unknown",
iTerm = "iterm",
Apple = "apple",
Hyper = "hyper",
alacritty = "alacritty",
}
export declare const terminal: Terminal;
export default terminal;
```