kitty-version
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

kitty-version

npm install size coverage npm type definitions license

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

Package Sidebar

Install

npm i kitty-version

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

8.4 kB

Total Files

9

Last publish

Collaborators

  • tbjgolden