// package
is-wsl
type: "module"
// preferences
// replacements (1)
snippet::is-wsl
Simple or drop-in replacementThis package is no longer necessary. You can check if the current environment is WSL by checking if the `WSL_DISTRO_NAME` environment variable is set.
// example
const isWsl = Boolean(
process.env.WSL_DISTRO_NAME,
);