spark.getBaseUrl
function getBaseUrl(): stringGet the current base URL.
Returns the configured base URL used for all file operations. By default, this is https://torchjs.org.
Returns
string– Current base URL stringExamples
const url = spark.getBaseUrl();
console.log('Loading from:', url);See Also
- setBaseUrl - Configure the base URL