{"name":"is-docker","version":"4.0.0","description":"Check if the process is running inside a Docker container","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-docker.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","bin":{"is-docker":"cli.js"},"exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && node --test"},"keywords":["detect","docker","dockerized","container","inside","is","env","environment","process"],"devDependencies":{"esmock":"^2.7.3","xo":"^1.2.2"},"_id":"is-docker@4.0.0","gitHead":"59379f14b6dda26a0167fce55d80bf546857f92d","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-docker/issues"},"homepage":"https://github.com/sindresorhus/is-docker#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-LHE+wROyG/Y/0ZnbktRCoTix2c1RhgWaZraMZ8o1Q7zCh0VSrICJQO5oqIIISrcSBtrXv0o233w1IYwsWCjTzA==","shasum":"6aab87c77a30ddff39c460af372ee1795aee7848","tarball":"http://registry-npm.ywwl.com/is-docker/download/is-docker-4.0.0.tgz","fileCount":6,"unpackedSize":3481,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGhFg9+2S8fgJ1BKJ+SPPWTJE/ctOw2IS6FZ8D7eU4BBAiEA1GjnMKdoDiYNd+Zb3IMkqx6RVrWBBM7Qm4s6A6aCUyw="}],"size":1779,"noattachment":false,"key":"/is-docker/-/is-docker-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-docker_4.0.0_1757970248187_0.42945898660424886"},"_hasShrinkwrap":false,"readme":"# is-docker\n\n> Check if the process is running inside a Docker container\n\n## Install\n\n```sh\nnpm install is-docker\n```\n\n## Usage\n\n```js\nimport isDocker from 'is-docker';\n\nif (isDocker()) {\n\tconsole.log('Running inside a Docker container');\n}\n```\n\n## CLI\n\n```sh\n$ is-docker\n```\n\nExits with code 0 if inside a Docker container and 2 if not.\n\n```sh\n$ is-docker && echo \"Running in Docker\" || echo \"Not running in Docker\"\n```\n\n## Related\n\n- [is-inside-container](https://github.com/sindresorhus/is-inside-container) - Check if the process is running inside a container\n","publish_time":1757970248390,"_cnpm_publish_time":1757970248390,"dist-tags":{"latest":"4.0.0"}}