sindresorhus / Wait For Localhost
Licence: mit
Wait for localhost to be ready
Stars: ✭ 245
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Wait For Localhost
Wait For Localhost Cli
Wait for localhost to be ready from the command-line
Stars: ✭ 101 (-58.78%)
Mutual labels: delay, server, npm-package, localhost
Delay Cli
Delay execution for a given amount of seconds
Stars: ✭ 74 (-69.8%)
Mutual labels: delay, npm-package
Electron Serve
Static file serving for Electron apps
Stars: ✭ 310 (+26.53%)
Mutual labels: server, npm-package
Myserver
MyServer is your own localhost web server. you can setup PHP, Apache, Nginx and MySQL servers on your android devices or linux like Ubuntu etc. MyServer is Developed for android terminal like Termux or GNURoot Debian terminal.
Stars: ✭ 160 (-34.69%)
Mutual labels: server, localhost
Node S3 Uploader
Flexible and efficient resize, rename, and upload images to Amazon S3 disk storage. Uses the official AWS Node SDK for transfer, and ImageMagick for image processing. Support for multiple image versions targets.
Stars: ✭ 237 (-3.27%)
Mutual labels: npm-package
Nodehun
The Hunspell binding for NodeJS that exposes as much of Hunspell as possible and also adds new features. Hunspell is a first class spellcheck library used by Google, Apple, and Mozilla.
Stars: ✭ 229 (-6.53%)
Mutual labels: npm-package
Unstated Debug
Debug your Unstated containers with ease
Stars: ✭ 231 (-5.71%)
Mutual labels: npm-package
Unsplash Wallpaper
Use an image from unsplash.com as your background image from a simple command.
Stars: ✭ 238 (-2.86%)
Mutual labels: npm-package
Stubby4node
A configurable server for mocking/stubbing external systems during development.
Stars: ✭ 237 (-3.27%)
Mutual labels: server
Stimulus Components
A modern Stimulus library delivering common JavaScript behaviors with a bunch of customizable controllers.
Stars: ✭ 234 (-4.49%)
Mutual labels: npm-package
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+1307.35%)
Mutual labels: server
Mocknet
以极简的方式在 Android 本地创建服务器用来接口测试和接口开发(An excellent tool for creating local server on Android.)
Stars: ✭ 236 (-3.67%)
Mutual labels: server
wait-for-localhost
Wait for localhost to be ready
Useful if you need a local server to be ready to accept requests before doing other things.
Install
$ npm install --global wait-for-localhost
Usage
const waitForLocalhost = require('wait-for-localhost');
(async () => {
await waitForLocalhost({port: 8080});
console.log('Server is ready');
})();
API
waitForLocalHost([options])
Returns a Promise
that settles when localhost is ready.
options
Type: Object
port
Type: number
Default: 80
path
Type: string
Default: '/'
Use a custom path.
For example, /health
for a health-check endpoint.
useGet
Type: boolean
Default: false
Use the GET
HTTP-method instead of HEAD
to check if the server is running.
Related
- wait-for-localhost-cli - CLI for this module
- delay - Delay execution for a given amount of seconds
License
MIT © Sindre Sorhus
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].