An object with several loader utility functions.


.decodeText (array : TypedArray) : String

array — A stream of bytes as a typed array.

The function takes a stream of bytes as input and returns a string representation.

.extractUrlBase (url : String) : String

url — The url to extract the base url from.

Extract the base from the URL.

.resolveURL (url : String, path : String ) : String

url — The absolute or relative url resolve. path — The base path for relative urls to be resolved against.

Resolves relative urls against the given path. Absolute paths, data urls, and blob urls will be returned as is. Invalid urls will return an empty string.


For more info on how to obtain the source code of this module see this page.