mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
16 lines
254 B
TypeScript
16 lines
254 B
TypeScript
|
/**
|
||
|
Check if the process is running inside a Docker container.
|
||
|
|
||
|
@example
|
||
|
```
|
||
|
import isDocker = require('is-docker');
|
||
|
|
||
|
if (isDocker()) {
|
||
|
console.log('Running inside a Docker container');
|
||
|
}
|
||
|
```
|
||
|
*/
|
||
|
declare function isDocker(): boolean;
|
||
|
|
||
|
export = isDocker;
|