cdn-resolve
Version:
Resolves import paths to their CDN equivalents
14 lines • 471 B
text/typescript
//#region src/unpkg.d.ts
interface UnpkgOptions {
module?: boolean;
meta?: boolean;
}
/**
* Builds the URL for the specified module on unpkg.com.
* @param {string} module - The name of the module.
* @param {UnpkgOptions} options - configuration options.
* @returns {URL} The URL for the module on unpkg.com.
*/
declare function buildUnpkgUrl(module: string, options?: UnpkgOptions): URL | undefined;
//#endregion
export { buildUnpkgUrl as n, UnpkgOptions as t };