Socket
Socket
Sign inDemoInstall

awaitbox

Package Overview
Dependencies
4
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    awaitbox

A box of useful things to await in async functions.


Version published
Weekly downloads
15
increased by400%
Maintainers
1
Install size
18.0 kB
Created
Weekly downloads
 

Readme

Source

awaitbox

A box of useful things to await for in async functions.

npm i awaitbox --save

NOTE: It's recommended that you install only the packages that you need, rather than this package directly.

Available tools

  • documentReady() - Await for the document to be ready.
  • windowLoaded() - Await for the window to be loaded.
  • meteorStartup() - Await for Meteor's environment to be ready.
  • sleep() - Await for a certain amount of time.

Compatibility

This package is written in ES2016+ JavaScript. To use this in pre-ES2016 environments, you'll need to run this through a transpiler like Babel (and I recommend using the fast-async plugin to get the best results). See some tips on wiring it up with Webpack.

Contributing

Please open an issue or PR if you have any ideas! :]

Keywords

FAQs

Last updated on 06 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc