- Source:
Namespaces
Members
(protected, static, constant) exports.addDataParser
- Source:
(static, constant) exports.addTypeParser
- Source:
(static, constant) exports.data
- Source:
(static, constant) exports.dataAsync
- Source:
(static, constant) exports.has
- Source:
(static, constant) exports.hasDataParser
- Source:
(static, constant) exports.hasTypeParser
- Source:
(static, constant) exports.list
- Source:
(static, constant) exports.listDataParser
- Source:
(static, constant) exports.listTypeParser
- Source:
(static, constant) exports.remove
- Source:
(static, constant) exports.removeDataParser
- Source:
(static, constant) exports.removeTypeParser
- Source:
(static, constant) exports.treeTypeParser
- Source:
(static, constant) exports.type
- Source:
(static, constant) exports.typeMatcher :RegExp
Validate and parse the format name
- Source:
Type:
-
RegExp
Methods
(protected, static) chain(input, optionsopt) → {Array.<CSL>}
Parse input until success.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
input |
InputData
|
input data |
|
options |
Cite~InputOptions
|
<optional> |
options |
(protected, static) chainAsync(input, optionsopt) → {Promise.<Array.<CSL>>}
Parse input until success. (async)
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
input |
InputData
|
input data |
|
options |
Cite~InputOptions
|
<optional> |
options |
(protected, static) chainLink(input) → {Array.<CSL>}
Parse input once.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
input |
InputData
|
input data |
(protected, static) chainLinkAsync(input) → {Promise}
Parse input once. (async)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
input |
InputData
|
The input data |
Returns:
- Type:
-
Promise
The parsed input
Type Definitions
(async) asyncDataParser(input)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
input |
InputData
|
Returns:
parsed data
parsers
Properties:
Name | Type | Description |
---|---|---|
parse |
Cite.plugins.input~dataParser
|
|
parseAsync |
Cite.plugins.input~asyncDataParser
|
|
parseType |
Cite.plugins.input~typeParser
|
- Source:
Type:
-
Object
predicate(input) → {Boolean}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
input |
InputData
|
Returns:
- Type:
-
Boolean
pass
propertyConstraint
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
props |
String
|
Array.<String>
|
<optional> |
[] | |
match |
String
|
<optional> |
'every' | |
value |
Cite.plugins.input~valuePredicate
|
<optional> |
- Source:
Type:
-
Object
tokenList
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
token |
RegExp
|
token pattern |
||
split |
RegExp
|
<optional> |
/\s+/ | token delimiter |
every |
Boolean
|
<optional> |
true | match every token, or only some |
trim |
Boolean
|
<optional> |
true | trim input whitespace before testing |
- Source:
Type:
-
Object
typeParser
Properties:
Name | Type | Description |
---|---|---|
dataType |
Cite.plugins.input~dataType
|
|
predicate |
Cite.plugins.input~predicate
|
RegExp
|
|
tokenList |
Cite.plugins.input~tokenList
|
RegExp
|
|
propertyConstraint |
Cite.plugins.input~propertyConstraint
|
Array.<Cite.plugins.input~propertyConstraint>
|
|
elementConstraint |
Cite.plugins.input~elementConstraint
|
Array.<Cite.plugins.input~elementConstraint>
|
|
extends |
Cite.plugins.input~format
|
- Source:
Type:
-
Object
valuePredicate(value) → {Boolean}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Returns:
- Type:
-
Boolean
pass