DEV Community

loading...

Are They Up? A Node cli for checking if a site is up

James Perkins
Developer | Teacher | Blogger and Youtuber
・1 min read

Are they up is a npm package that can be installed globally that checks to see if any domain is up.

Why did I create this node cli.

Well I have in the past been working on a api framework with a particular domain and ran into an issue where they were down or I couldn't decide if my internet was down or if a site was.

How to install?

npm install aretheyup -g
//or this for single project
npm install aretheyup




How to use

The good news its super simple as shown below. The return is either a nice green check with an affirmative Yup! or a red cross with a sad Nope! If you type a domain in wrong you will get an error that says please check the domain and try again. Simple yet function!

example

Whats next for Are They Up?

I plan to add response times, returned ip and return code. AS functionally they are useful.

I hope you enjoy it, if you have any issues go ahead and report it via github

Discussion (2)

Collapse
defman profile image
Sergey Kislyakov πŸ‡·πŸ‡Ί πŸ‡ΊπŸ‡Έ

Do we need that much of dependencies for a curl http://any.website?

kappa123

Collapse
perkinsjr profile image
James Perkins Author

381 of the 397 dependencies packages are based upon Ava testing suite. Which I use in all my node modules, and no its not for everyone

I agree you could use just curl any.website but the package is certainly not aimed for everyone, and more about providing anyone with the ability to check a site.