is-tmux
v1.0.0
Published
Detect if your code is running inside a tmux session, and if so, which pane
Downloads
67
Readme
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 = require('is-tmux');
console.log(isTmux.default); // Prints true in tmux, false otherwise
console.log(isTmux.pane()); // Prints pane number in tmux (e.g. "%138"), undefined otherwise
About
License
Copyright © 2018, nukeop. Released under the MIT License.