# which-server

> Simple utility to find which webserver is running

Latest version **0.0.7** (published 2022-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install which-server
pnpm add which-server
yarn add which-server
bun add which-server
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2022-03-02 |
| First published | 2022-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | mcnaveen |
| Maintainers | mcnaveen |
| Keywords | webserver, nginx, openlitespeed, lighttpd, apache2, which-server |

## Links

- npm: https://www.npmjs.com/package/which-server
- Repository: https://github.com/mcnaveen/which-server
- Homepage: https://github.com/mcnaveen/which-server#readme
- Issues: https://github.com/mcnaveen/which-server/issues
- npm.io page: https://npm.io/package/which-server

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.26.0

## Recent versions

- 0.0.7 (latest) — 2022-03-02
- 0.0.6 — 2022-03-02
- 0.0.5 — 2022-03-02
- 0.0.4 — 2022-03-02
- 0.0.3 — 2022-03-02
- 0.0.2 — 2022-03-02
- 0.0.1 — 2022-03-02

## 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.

---
_Source: https://npm.io/package/which-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
