Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

server.Server.versionAtLeast

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
versionAtLeast ( minimum : : string ) → Promise<boolean>
methodasync [source]
methodasync [source]
versionAtLeast

Whether this server is at least minimum, written the way tmux writes it.

This is how a caller gates on a feature that arrived in a known release without parsing #{version} themselves. A named development build such as next-3.9 has not shipped the release it names: it is at least 3.8, but not at least 3.9. An untargeted development build (bare master, or `<tag>-master`) names no release it is heading toward, so nothing bounds it — it is at least anything.

Examples

if (await server.versionAtLeast("3.3")) {
await server.setOption("extended-keys", "on");
}

0 declared, 0 inherited

Esc

Type to search.