@stdlib/assert-is-docker
v0.2.2
Published
Check if the process is running in a Docker container.
Downloads
14
Readme
IS_DOCKER
Check if the process is running in a Docker container.
Installation
npm install @stdlib/assert-is-docker
Usage
var IS_DOCKER = require( '@stdlib/assert-is-docker' );
IS_DOCKER
Boolean
indicating if the process is running in a Docker container.
var bool = IS_DOCKER;
// returns <boolean>
Examples
var IS_DOCKER = require( '@stdlib/assert-is-docker' );
console.log( IS_DOCKER );
// => <boolean>
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.