0.0.22 • Published 3 years ago

@skeinteam/wait-for v0.0.22

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

waitFor

Use waitFor to delay the execution of a piece of code until a dependency is loaded.

Installation

npm install --save @skeinteam/wait-for

Usage

For example, if waiting for jQuery to be loaded:

waitFor('jQuery')
  .then(() => {
    console.log('jQuery is loaded');
  })
  .catch(error => console.log(error));
0.0.21

3 years ago

0.0.22

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago