Methods
duration8601(seconds) → {string|null}
Function to format seconds as duration
Parameters:
| Name | Type | Description |
|---|---|---|
seconds |
number | A number of seconds |
- Source:
Returns:
A formatted duration, or null if input not parseable.
- Type
- string | null
schema(optionsopt)
Schema plugin. Adds schema.org metadata in json+ld format to the DOM for Google and other search engines which will read data inserted by javascript.
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | An object of options Properties
|