@open-screeps/is-simulation
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.');
}

Related

License

MIT

/@open-screeps/is-simulation/

    Package Sidebar

    Install

    npm i @open-screeps/is-simulation

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • postcrafter