UNPKG

srvh2ch11

Version:

A simple Node.js module that creates a server supporting both HTTP/1.1 and HTTP/2 cleartext (h2c) on the same port

10 lines 206 B
export function env(name, defaultValue) { const value = process.env[name] if (value !== undefined) { return value } if (defaultValue === false) { return undefined } return defaultValue }