🦄 Simple utility to find which webserver is running.
- Node.js 12X LTS or 14X LTS 📦
- Install the NPM Package with the below command:
npm install which-server --save
(or)
- Install with Yarn:
yarn add which-server
- Import the module in your project:
import getServerName from "which-server";
- 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();
This website uses: gws
I hope you find this useful. If you have any questions, please create an issue.