- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
28 lines
341 B
Markdown
28 lines
341 B
Markdown
# is-docker
|
|
|
|
> Check if the process is running inside a Docker container
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install is-docker
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const isDocker = require('is-docker');
|
|
|
|
if (isDocker()) {
|
|
console.log('Running inside a Docker container');
|
|
}
|
|
```
|
|
|
|
## CLI
|
|
|
|
```
|
|
$ is-docker
|
|
```
|
|
|
|
Exits with code 0 if inside a Docker container and 2 if not.
|