Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 372 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 372 Bytes

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);
  }