is-replit
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

is-replit

Detect if your code is currently running on Replit

import isReplit from "is-replit";

// true if ran in Replit, false otherwise
console.log(isReplit());

process.env.REPLIT = 1; // Manually set REPLIT

// true
console.log(isReplit());

Readme

Keywords

Package Sidebar

Install

npm i is-replit

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

815 B

Total Files

4

Last publish

Collaborators

  • flzyy