Repository
Current version released
4 years ago
deno-is
Detect the running environment and context of the current script.
Usage
import { isCI, isWsl } from "https://deno.land/x/is/mod.ts";
isCI();
// => false
isWsl();
// => false
or
import isCI from "https://deno.land/x/is/ci.ts";
isCI();
// => false
import isWsl from "https://deno.land/x/is/wsl.ts";
isWsl();
// => false
Available methods
alphabetical order:
Methods | Description |
---|---|
isCI |
Whether the process is running on the CI server |
isDocker |
Whether the process is running inside Docker |
isGzip |
Whether a Uint8Array is a gzip file |
isRunning |
Whether the process(pid) is running |
isWsl |
Whether the process is running inside Windows Subsystem for Linux |
Credits
License
deno-is is released under the MIT License. See the bundled LICENSE file for details.