easily resolve protocol/port setups on any development platform
- GitHub Codespaces
- Gitpod
- Glitch - no port support
- CodeSandbox
If you would like to add support for another platform, please open an issue about it.
import { transform } from "cloud-url-resolver";
transform(3000, "http"); // returns "http://localhost:3000" if on localhost; otherwise, returns the transformed for the current platform