🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

iterm2-version

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterm2-version

Get the iTerm2 version

latest
Source
npmnpm
Version
6.0.0
Version published
Weekly downloads
325K
17.1%
Maintainers
1
Weekly downloads
 
Created
Source

iterm2-version

Get the iTerm2 version

Note: The 2 in iTerm2 is part of the name and does not indicate the version.

Install

npm install iterm2-version

Usage

import iterm2Version from 'iterm2-version';

console.log(iterm2Version());
//=> '3.5.10'

If you're not running in iTerm2, it will return undefined.

Works over SSH by querying the terminal via escape sequences when environment variables are not available.

API

iterm2Version()

Returns a string | undefined with the iTerm2 version.

Keywords

iterm2

FAQs

Package last updated on 05 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts