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

Usage no npm install needed!

<script type="module">
  import canGlobals from 'https://cdn.skypack.dev/can-globals';
</script>

README

can-globals

Join our Slack Join our Discourse License: MIT npm version Build Status Greenkeeper badge

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.

Changelog

See the latest releases on GitHub.

Contributing

The contribution guide has information on getting help, reporting bugs, developing locally, and more.

License

MIT