Package Exports
- which-server
- which-server/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (which-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Which Web Server is running?
🦄 Simple utility to find which webserver is running.
📦 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.