Function: parseGroupUrl()
ts
function parseGroupUrl(url): ParsedGroupUrl;Defined in: parse.ts:97
Parses a group root URL (/:uuid~N/). Group roots carry no operations and no filename, which is why the returned shape has neither.
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
Throws
TypeError when the URL is not a bare group root.
See
https://uploadcare.com/docs/file-groups/
Example
ts
parseGroupUrl(`https://ucarecdn.com/${uuid}~3/`)
// → { kind: 'group', group: { uuid, count: 3 }, ... }