cdn-resolve
Version:
Resolves import paths to their CDN equivalents
14 lines (12 loc) • 434 B
text/typescript
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;
export { type UnpkgOptions, buildUnpkgUrl };