0.0.1 • Published 1 year ago

cloudflare-status v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Get Cloudflare Status

Yet another useless project, brought to you by Redacted Devs

Get the status of a page covered by cloudflare, in a readable object!

Example

const getCloudflareStatus = require("cloudflare-status");

const url = "https://www.cloudflare.com";

/**
 *  Returns an object through the callback.
 *  @status - string
 *  @code - integer
 *  @message - string
 * */
getCloudflareStatus(url, function (error, status) {
  if (error) {
    console.log(error);
  } else {
    console.log(status);
  }
});

Contributing

  • Contribute on the open source github!
0.0.1

1 year ago