Skip to content

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 ​

ParameterType
urlstring

Returns ​

ParsedGroupUrl

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 }, ... }