Skip to content

Function: isArchiveUrl() ​

ts
function isArchiveUrl(url): boolean;

Defined in: parse.ts:439

Whether a string is a group archive URL, without parsing it or throwing.

Parameters ​

ParameterType
urlstring

Returns ​

boolean

See ​

https://uploadcare.com/docs/file-groups/#group-archive

Example ​

ts
isArchiveUrl(`https://ucarecdn.com/${uuid}~3/archive/zip/`) // → true