mcnaveen / which-server

Simple utility to find which webserver is running

Home Page:https://www.npmjs.com/package/which-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Which Web Server is running?

πŸ¦„ Simple utility to find which webserver is running.

Build

πŸ“¦ Requirements

  • Node.js 12X LTS or 14X LTS πŸ“¦

✨ Installation

  • Install the NPM Package with the below command:
npm install which-server --save

(or)

  • Install with Yarn:
yarn add which-server

πŸ–ŠοΈ Usage

  • Import the module in your project:
import getServerName from "which-server";

πŸ’‘ Example

  • Import the module in your project
  • Pass the URL of the website to get the server name
  • Make sure to use Async/Await function
import getServerName from "which-server";

async function getdata(){
    let url = "https://google.com";
    const data = await getServerName(url);
    console.log("This website uses: " + data);
}

getdata();

β˜‘οΈ Example Output

This website uses: gws

πŸ’š Message

I hope you find this useful. If you have any questions, please create an issue.

About

Simple utility to find which webserver is running

https://www.npmjs.com/package/which-server


Languages

Language:JavaScript 100.0%