1.1.3 • Published 6 years ago

which-terminal v1.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

which-terminal build status package version GitHub license

Check active terminal emulator

Install

$ npm install which-terminal

Usage

Checkout example.js

const terminal = require('which-terminal');
//=> { program: String, command: String } or null

if (terminal) {
  console.log('Using %s [cmd=%s]', terminal.program, terminal.command);
}
// Running in Hyper:
//=> "Using: hyper [cmd=/opt/Hyper/hyper]"

// Running in GNOME Terminal:
//=> "Using: gnome-terminal [cmd=gnome-terminal]"

// Running in Terminator:
//=> "Using: terminator [cmd=/usr/bin/terminator]"
1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago