app-ready
Signal that your app is ready for use.
Why?
- Simple way to track async initialization.
- Avoids polling the filesystem.
- Enables graceful start.
Install
npm install app-ready --save
Usage
Get it into your program.
const appReady = ;
Tell the parent process that we are ready.
await database;await server;;
API
appReady()
If the process is a child of another Node.js process, sends a message
event to the parent with a value of ready
. Otherwise, does nothing.
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
Go make something, dang it.