0.0.2 • Published 10 months ago

detect-terminal v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

detect-terminal NPM version NPM monthly downloads NPM total downloads

Detect the terminal program currently being used, with support for iTerm, Terminal.app, Hyper, iTerm, ConEmu, Cmde,r Alacritty, Xterm, Terminator, Termux, Kitty, and many others. This can't be done reliably in all cases, but it's useful when available.

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your :heart: and support.

Install

Install with npm:

$ npm install --save detect-terminal

Usage

import { detectTerminal } from 'detect-terminal';

console.log(detectTerminal()) //=> iterm

About

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Author

Jon Schlinkert

License

Copyright © 2024, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.8.0, on September 30, 2024.