Skip to content

mohitmayank/await-global

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Promised wait for globals

Resources

License

Stars

Watchers

Forks

Packages

No packages published