is-codespace
v1.0.0
Published
Detect if your code is currently running inside of a Github Codespace
Downloads
14
Maintainers
Readme
is-codespace
Detect if your code is currently running on Replit
import isCodespace from "is-replit";
// true if ran in Codespaces, false otherwise
console.log(isCodespace());
process.env.CODESPACE = "true"; // Manually set CODESPACE
// true
console.log(isCodespace());