is-tmux
Detect if your code is running inside a tmux session, and if so, which pane
Installation
$ npm install --save is-tmux
Usage
const isTmux = ;console; // Prints true in tmux, false otherwise console; // Prints pane number in tmux (e.g. "%138"), undefined otherwise
About
License
Copyright © 2018, nukeop. Released under the MIT License.