await-global
v2.0.0
Published
Promised wait for globals
Downloads
412
Readme
await-global
Promised wait for globals
Install
yarn install await-global
Usage
import awaitGloabl from 'await-global';
awaitGlobal('SomeGlobal').then(SomeGlobal => {
console.log(SomeGlobal);
});
async function globalCheck() {
const AnotherGlobal = await awaitGlobal('AnotherGlobal');
console.log(AnotherGlobal);
}