kitty-version
v2.0.1
Published
Get the version of the currently running kitty window, or undefined otherwise.
Downloads
14
Maintainers
Readme
kitty-version
Get the version of the currently running kitty window, or undefined otherwise.
Install
This package is available from the npm
registry.
npm install kitty-version
Requirements:
- when using node natively with
import
:>=14.13.1 ~12.20.0
- when using node natively with
require
:>=16.0.0 ~14.18.0
Usage
# if in kitty and not on windows
$ npx kitty-version
# 0.26.5
# if not in kitty or in windows
$ npx kitty-version
# undefined
Supports JavaScript + TypeScript:
import { kittyVersion } from "kitty-version";
console.log(kittyVersion());
// e.g. "0.26.5" (or `undefined` if using Windows or not using kitty)
Can also be imported via require("kitty-version")
.
Contributing
GitHub issues / PRs welcome.
Dev environment requires:
- node >= 16.14.0
- npm >= 6.8.0
- git >= 2.11
Licence
MIT