feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// Protocols that can allow "unsafe" and "unwise" chars.
export declare const unsafeProtocol: unknown;
// Protocols that never have a hostname.
export declare const hostlessProtocol: unknown;
// Protocols that always contain a // bit.
export declare const slashedProtocol: unknown;
export declare function pathToFileURL(filepath: string, options?: {
windows?: boolean;
});
export declare function fileURLToPath(path: string | URL, options?: {
windows?: boolean;
});
/**
* Utility function that converts a URL object into an ordinary options object
* as expected by the `http.request` and `https.request` APIs.
* @param {URL} url
* @returns {Record<string, unknown>}
*/
export declare function urlToHttpOptions(url: URL): {
__proto__: null;
path: string;
};