util

Cite. util

Classes

Register
TokenStack

Namespaces

attr

Methods

(protected, static) deepCopy(obj) → {Object}

Duplicate objects to prevent Cite changing values outside of own scope

Source:
Parameters:
Name Type Description
obj Object

Input object

Returns:
Type:
Object

Duplicated object

(protected, static) fetchFile(url, opts) → {String}

Fetch file

Source:
Parameters:
Name Type Description
url String

The input url

opts Object

Request options

Returns:
Type:
String

The fetched string

(async, protected, static) fetchFileAsync(url, opts) → {Promise.<String>}

Fetch file (async)

Source:
Parameters:
Name Type Description
url String

The input url

opts Object

Request options

Returns:
Type:
Promise.<String>

The fetched string

(protected, static) fetchId(list, prefix) → {String}

Generate ID

Source:
Parameters:
Name Type Description
list Array.<String>

old ID list

prefix String

ID prefix

Returns:
Type:
String

CSL ID