Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Slimmed down version of pomdtr/extractValInfo that focuses on extracting the HTTP endpoint URL of the Val.

Example usage:

const apiUrl = extractHttpEndpoint(import.meta.url);