@yoot/cloudinary
Version:
Cloudinary adapter for @yoot/yoot
15 lines (14 loc) • 592 B
TypeScript
import type { Adapter } from '@yoot/yoot';
export { adapter };
export { urlParts };
/**
* Adapter for Cloudinary image URLs.
*
* @remarks Transforms `yoot` directives into Cloudinary image URL path directives.
* Supports URLs from the `res.cloudinary.com` and `cloudinary-a.akamaihd.net` hostnames.
* @see https://github.com/mayashavin/cloudinary-api/blob/23b18d683dbe5d1d1d47c5a468803560f48f18e4/packages/url/lib/url.ts#L6
* @public
*/
declare const adapter: Adapter;
/** Splits Cloudinary URL into base and resource path. */
declare function urlParts(url: string): [string, string];