1 const svrjsInfo
= require("../../svrjs.json");
2 const { version
, name
} = svrjsInfo
;
3 const getOS
= require("./getOS.js");
5 function generateServerString(exposeServerVersion
) {
6 return exposeServerVersion
7 ? `${name.replace(/ /g, "-")}/${version} (${getOS()}; ${
9 ? "Bun/v" + process.versions.bun + "; like Node.js/" + process.version
10 : process.versions && process.versions.deno
12 process.versions.deno +
15 : "Node.js/" + process.version
17 : name
.replace(/ /g
, "-");
20 module
.exports
= generateServerString
;