is-inside-container
npmv1.0.0TypeScriptCheck if the process is running inside a container (Docker/Podman)
Not recommended for new projects
No — is-inside-container should not be adopted for new projects. Last published 1303 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1303 days ago.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 6.8 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding is-inside-container to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing is-inside-container, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=14.16
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the is-inside-container README.
import isInsideContainer from 'is-inside-container';
if (isInsideContainer()) {
console.log('Running inside a container');
}is-inside-container vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
Dependencies
Declared by is-inside-container v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (4)
Used by
Popular packages that depend on is-inside-container.
Relationship graph
Dependencies (left) and dependents (right) of is-inside-container.
Frequently installed together
Get the default browser
Utilities for working with Windows Subsystem for Linux (WSL)
TypeScript definitions for node
Check if the process is running in an SSH session
Define a lazily evaluated property on an object
Release history
No releases in the last two years.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.0latest | 3 years ago | 3.4 KB | MIT |
Overview
is-inside-container is an npm package that check if the process is running inside a container (Docker/Podman). It has 2 known dependents in the graph. The latest version is 1.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need check if the process is running inside a container (Docker/Podman) and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use is-inside-container?
No — is-inside-container should not be adopted for new projects. Last published 1303 days ago.
How do I install is-inside-container?
Run `npm install is-inside-container` to add is-inside-container to your npm project.
How many dependencies does is-inside-container have?
is-inside-container declares 5 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 6.8 KB on disk.
What license is is-inside-container released under?
is-inside-container is distributed under the MIT license.
How popular is is-inside-container?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on is-inside-container.
Is is-inside-container still maintained?
The most recent release of is-inside-container (v1.0.0) was published 3 years ago.
Does is-inside-container run install scripts?
No. is-inside-container does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.