-
-
URL
class is a global reference for require('url').URL
https://nodejs.org/api/url.html#the-whatwg-url-api
Add append an object literal of query parameters to the URL object. SCAPI expects Arrays to be comma separated where { a: ["1", "2"] } becomes ?a=1,2. The 'refine' query parameter is an exception, where SCAPI expects the the "repeat" convention where { refine: ["1", "2"] } becomes "?refine=1&refine=2"
Replace the origin (protocol/host) portion of the URL with a new origin. The path portion is retained and concatenated with any path included in the new origin. Thee primary use of this function is to use a proxy.
The new origin to substitute (ex: https://example.com)
Creates a 'blob:nodedata:...'
URL string that represents the given Blob
object and can be used to retrieve the Blob
later.
const {
Blob,
resolveObjectURL,
} = require('buffer');
const blob = new Blob(['hello']);
const id = URL.createObjectURL(blob);
// later...
const otherBlob = resolveObjectURL(id);
console.log(otherBlob.size);
The data stored by the registered Blob
will be retained in memory untilURL.revokeObjectURL()
is called to remove it.
Blob
objects are registered within the current thread. If using Worker
Threads, Blob
objects registered within one Worker will not be available
to other workers or the main thread.
Replace bracketed URL template parameters with values from parameters object
The URL template string to make substitutions in
The object literal that provides the values to substitute
String URL with substitutions made
Removes the stored Blob
identified by the given ID. Attempting to revoke a
ID that isn’t registered will silently fail.
Generated using TypeDoc