Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcnaveen/which-server
Simple utility to find which webserver is running
https://github.com/mcnaveen/which-server
apache2 nginx node-module nodejs openlitespeed webserver
Last synced: 3 months ago
JSON representation
Simple utility to find which webserver is running
- Host: GitHub
- URL: https://github.com/mcnaveen/which-server
- Owner: mcnaveen
- Created: 2022-03-02T03:42:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T16:11:24.000Z (4 months ago)
- Last Synced: 2024-10-23T22:07:36.496Z (4 months ago)
- Topics: apache2, nginx, node-module, nodejs, openlitespeed, webserver
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/which-server
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Which Web Server is running?
:unicorn: Simple utility to find which webserver is running.![Build](https://github.com/mcnaveen/which-server/workflows/Build/badge.svg)
### :package: Requirements
- Node.js 12X LTS or 14X LTS 📦### :sparkles: Installation
- Install the NPM Package with the below command:
```
npm install which-server --save
```(or)
- Install with Yarn:
```
yarn add which-server
```### :pen: Usage
- Import the module in your project:
```javascript
import getServerName from "which-server";
```### :bulb: 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```javascript
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();
```### :ballot_box_with_check: Example Output
```
This website uses: gws
```
---#### :green_heart: Message
I hope you find this useful. If you have any questions, please create an issue.