UNPKG

which-server

Version:

Simple utility to find which webserver is running

9 lines (7 loc) 214 B
const axios = require('axios'); async function getServerName(url) { const response = await axios.get(url); const serverName = response.headers["server"]; return serverName; } module.exports = getServerName;