is-tmux

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i is-tmux

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.48 kB

Total Files

5

Last publish

Collaborators

  • nukeop