1.0.0 • Published 6 years ago
is-tmux v1.0.0
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.
1.0.0
6 years ago