Skip to content

mohitmayank/await-global

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 8, 2020
4d32ef0 · Sep 8, 2020

History

10 Commits
Feb 15, 2019
Feb 15, 2019
Feb 15, 2019
Sep 8, 2020
Sep 8, 2020

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