@open-screeps/is-simulation
v1.0.0
Published
Check whether the code is running in simulation
Downloads
2
Readme
is-simulation
Check whether the code is running in simulation
Install
$ npm install @open-screeps/is-simulation
Usage
import { isSimulation } from '@open-screeps/is-simulation';
if (isSimulation()) {
console.log('Code loaded in simulation.');
}