# can-globals

> This module provides a dependency injection container. Modules may define a key and specify a default value (which can be static, cached lazy, or dynamic lazy), but other code can set and reset the value as needed. There is also an event system, for alert

Latest version **1.2.2** (published 2019-05-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2019-05-24 |
| First published | 2017-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 39.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Bitovi |
| Maintainers | andrejewski, blackmarket, chasen, cherif_b, christopherjbaker, justinbmeyer, matthewp, phillipskevin, stin13 |
| Keywords | canjs, can-globals, globals, dependancy, injection |

## Links

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

## Dependencies (3)

- [can-symbol](https://npm.io/package/can-symbol.md) ^1.0.0
- [can-reflect](https://npm.io/package/can-reflect.md) ^1.2.6
- [can-namespace](https://npm.io/package/can-namespace.md) ^1.0.0

## Recent versions

- 1.2.2 (latest) — 2019-05-24
- 0.0.0-pre.4 (pre) — 2017-08-07
- 1.2.1 — 2018-12-20
- 1.2.0 — 2018-07-04
- 1.1.1 — 2018-05-26
- 1.1.0 — 2018-05-26
- 1.0.1 — 2018-02-16
- 1.0.0 — 2018-01-27
- 0.4.1 — 2018-01-16
- 0.4.0 — 2018-01-04
- 0.3.0 — 2017-12-01
- 0.2.6 — 2017-11-02
- 0.2.5 — 2017-11-02
- 0.2.4 — 2017-10-31
- 0.2.3 — 2017-10-02
- … 15 more at https://npm.io/package/can-globals/versions

## README

# can-globals

[![Join our Slack](https://img.shields.io/badge/slack-join%20chat-611f69.svg)](https://www.bitovi.com/community/slack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join our Discourse](https://img.shields.io/discourse/https/forums.bitovi.com/posts.svg)](https://forums.bitovi.com/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/canjs/can-globals/blob/master/LICENSE)
[![npm version](https://badge.fury.io/js/can-globals.svg)](https://www.npmjs.com/package/can-globals)
[![Build Status](https://travis-ci.org/canjs/can-globals.svg?branch=master)](https://travis-ci.org/canjs/can-globals) [![Greenkeeper badge](https://badges.greenkeeper.io/canjs/can-globals.svg)](https://greenkeeper.io/)

An environment agnostic container for global variables. Useful for testing and server-side rendering (SSR), typically used internally by CanJS.

## Documentation

Read the [API docs on CanJS.com](https://canjs.com/doc/can-globals.html).

## Changelog

See the [latest releases on GitHub](https://github.com/canjs/can-globals/releases).

## Contributing

The [contribution guide](https://github.com/canjs/can-globals/blob/master/CONTRIBUTING.md) has information on getting help, reporting bugs, developing locally, and more.

## License

[MIT](https://github.com/canjs/can-globals/blob/master/LICENSE)

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