# screeps-globals

> This is a module to help get screeps code off of the global namespace.

Latest version **0.0.1** (published 2016-03-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install screeps-globals
pnpm add screeps-globals
yarn add screeps-globals
bun add screeps-globals
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-03-08 |
| First published | 2016-03-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gary Borton |
| Maintainers | gdborton |
| Keywords | screeps, globals |

## Links

- npm: https://www.npmjs.com/package/screeps-globals
- Repository: https://github.com/gdborton/screep-globals
- Homepage: https://github.com/gdborton/screep-globals#readme
- Issues: https://github.com/gdborton/screep-globals/issues
- npm.io page: https://npm.io/package/screeps-globals

## Recent versions

- 0.0.1 (latest) — 2016-03-08
- 0.0.0 — 2016-03-08

## README

# screeps-globals

This is a package that serves to help get Screeps objects off of the global namespace.  They're really still there, but by using this module, you'll be able to pretend like they aren't.

## Where is Game?

Game is an object literal, with the way that require caching works in Screeps, there isn't a way to export it while still having it update each tick.  This is one global that you'll still have to allow in your code.

## Why?

JavaScript has been moving away from using the global namespace for a while.  First with amd, then commonjs, and umd.  Now it's officially part of the spec, there isn't a reason to use the global namespace anymore, it makes code harder to grok and to refactor.

## You missed XXX

Yea, this is a really early phase in the module, expect breaking changes, missing globals and the like.

---
_Source: https://npm.io/package/screeps-globals · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
