is-kube
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

is-kube

Checks to see if the process is running inside a kubernetes container (i.e., similar to is-docker)

Install

$ npm install is-kube

Usage

JavaScript:

const isKube = require('is-kube');

if (isKube()) {
  console.log('Running inside a kubernetes container');
}

Typescript:

import isKube from "is-kube"

if (isKube()) {
  console.log('Running inside a kubernetes container');
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    17
  • 0.0.1
    0

Package Sidebar

Install

npm i is-kube

Weekly Downloads

17

Version

1.0.0

License

MIT

Unpacked Size

3.9 kB

Total Files

10

Last publish

Collaborators

  • jordanburke