Class: GroupChain
Defined in: fluent/chains.ts:57
A chainable group root url — element access and archives only.
Properties
kind
ts
readonly kind: "group";Defined in: fluent/chains.ts:59
Discriminant for chains returned by cdn.parse.
Accessors
href
Get Signature
ts
get href(): string;Defined in: fluent/chains.ts:97
The group root URL.
Returns
string
Methods
archive()
ts
archive(format, filename?): string;Defined in: fluent/chains.ts:92
Archive url for the whole group (originals only).
Parameters
| Parameter | Type |
|---|---|
format | "zip" | "tar" |
filename? | string |
Returns
string
base()
ts
base(cdnBase): GroupChain;Defined in: fluent/chains.ts:65
Rebases the chain onto another cdnBase (trailing slash tolerated).
Parameters
| Parameter | Type |
|---|---|
cdnBase | string |
Returns
GroupChain
nth()
ts
nth(index): GroupElementChain;Defined in: fluent/chains.ts:70
Addresses a single file in the group (zero-based).
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
toString()
ts
toString(): string;Defined in: fluent/chains.ts:102
Alias of the terminal getter for string coercion.
Returns
string