# is-podman

> Check if the process is running inside a Podman container

Latest version **1.0.1** (published 2021-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-podman
pnpm add is-podman
yarn add is-podman
bun add is-podman
```

Provides the command `is-podman`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-09-12 |
| First published | 2021-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rohan Arya Varma |
| Maintainers | poxav |
| Keywords | detect, podman, container, inside, is, env, environment, process, oci |

## Links

- npm: https://www.npmjs.com/package/is-podman
- Repository: https://github.com/rohan-av/is-podman
- Homepage: https://github.com/rohan-av/is-podman#readme
- Issues: https://github.com/rohan-av/is-podman/issues
- npm.io page: https://npm.io/package/is-podman

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-09-12
- 1.0.0 — 2021-09-12
- 0.1.0 — 2021-09-12

## README

# is-podman 

`is-podman` is an NPM module that checks whether a process is running inside a Podman container. This module is intended to work similarly to sindresorhus' `is-docker [module](https://www.npmjs.com/package/is-docker).

## Install

```
$ npm install is-podman
```

## Code Usage

```js
import isPodman = require('is-podman')

if (isPodman()) {
	console.log('Running inside a Podman container')
}
```

## CLI Usage
```
$ is-podman
```
Exits with code 0 if inside a Podman container and 2 if not.

## Testing

Both the code and CLI functionality were tested on WSL in the following environemtnts:
1. no containerization
1. Docker
1. Podman

Behavior was as expected, but no formal tests have been written yet.

---
_Source: https://npm.io/package/is-podman · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
