Methods
(static) isNotFunction(fn)
Validation check to ensure provided hooks are executable functions.
| Name | Type | Description |
|---|---|---|
fn | The value to check. |
- Source
true if the value is NOT a function.
(static) isValidPlaylist(content)
Checks if the content starts with the mandatory HLS #EXTM3U tag.
| Name | Type | Description |
|---|---|---|
content | The raw manifest string. |
- Source
true if it contains the HLS header.
(static) isValidUrl(url, protocols)
Validates if the provided string is a properly formatted URL with supported protocols.
| Name | Type | Description |
|---|---|---|
url | The URL string to validate. | |
protocols | An array of allowed protocols. |
- Source
If the protocol is not in the allowed list.
true if valid.
(static) omit(subject, …keys)
Filters out specific keys from an object.
| Name | Type | Attributes | Description |
|---|---|---|---|
subject | The source object. | ||
keys | <repeatable> | The keys to remove. |
- Source
A new object excluding the specified keys.
(static) parseUrl(url)
Utility to create a URL object from a string.
| Name | Type | Description |
|---|---|---|
url | The URL string to parse. |
- Source
A native Node/Web URL object.
(static) stripFirstSlash(url)
Removes the leading slash from a pathname for safe path joining.
| Name | Type | Description |
|---|---|---|
url | The string to strip. |
- Source
The string without a leading slash.
