hexo/node_modules/is-docker/index.d.ts

16 lines
269 B
TypeScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
/**
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;