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