Socket
Book a DemoInstallSign in
Socket

kitty-version

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitty-version

Get the version of the currently running kitty window, or undefined otherwise.

latest
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

kitty

FAQs

Package last updated on 19 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts