Function: tinyParse()
ts
function tinyParse(url): Required<TinyFileUrl>;Defined in: tiny/url.ts:70
Cuts a single-file CDN url into TinyFileUrl, every field filled ('' when absent) — the tiny counterpart of parseFileUrl. Never throws and never validates: unknown operations and internal @-prefixed directives survive verbatim, and a secure-delivery token is kept in search.
File urls only. The cuts are lexical, so a group, group element or proxy url produces meaningless fields — though tinyBuild still reproduces it exactly. Use parseCdnUrl when the kind is not already known.
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
Required<TinyFileUrl>
See
https://uploadcare.com/docs/delivery/cdn/
Example
ts
tinyParse('https://ucarecdn.com/:uuid/-/resize/300x/photo.jpg')
// → { cdnBase: 'https://ucarecdn.com', uuid: ':uuid',
// modifiers: '-/resize/300x/', filename: 'photo.jpg', search: '', hash: '' }