{"library":"get-server-address","type":"library","category":null,"description":"get-server-address is a concise and focused utility for Node.js environments that provides a standardized way to retrieve the listening address of an `http.Server` instance. It abstracts away the intricacies of directly interacting with `server.address()`, which can return different types (string for Unix sockets, or an object for `AddressInfo` with IPv4/IPv6 details). The package aims to return a human-readable URL string, correctly handling IPv6 addresses by wrapping them in brackets (e.g., `http://[::1]:3000`). Currently at version 1.0.1, it maintains a stable API, with releases likely occurring only for critical bug fixes or compatibility updates with new Node.js versions. It differentiates itself by offering a simple, consistent API for a common server-side task, focusing solely on the address retrieval rather than server creation or management.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install get-server-address","imports":["import { getServerAddress } from 'get-server-address';","import type { Server } from 'http';\nimport { getServerAddress } from 'get-server-address';"]},{"cmd":"yarn add get-server-address","imports":[]},{"cmd":"pnpm add get-server-address","imports":[]}],"homepage":null,"github":"https://github.com/jameslnewell/get-server-address","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/get-server-address","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/get-server-address/compatibility"}}