Skip to content
/ is-tmux Public

Detect if your code is running inside a tmux session, and if so, which pane

License

Notifications You must be signed in to change notification settings

nukeop/is-tmux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Detect if your code is running inside a tmux session, and if so, which pane

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published