Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

can-global

canjs5.9k1.0.1

Returns the global that this environment provides.

canjs, global

readme

can-global

Build Status

Returns the global that this environment provides.

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

import plugin from "can-global";

CommonJS use

Use require to load can-global and everything else needed to create a template that uses can-global:

import plugin from "can-global";

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-global/dist/global/can-global.js'></script>