Package Exports
- is-tmux
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-tmux) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.