Methods
buildDefinition(path, deps) → {Definition}
- Source:
Build definition.
Parameters:
Name | Type | Description |
---|---|---|
path |
string | |
deps |
Dependencies |
Returns:
- Type
- Definition
buildDependencies(pattern, root) → {Dependencies}
- Source:
Build dependencies.
Parameters:
Name | Type | Description |
---|---|---|
pattern |
string | |
root |
string |
Returns:
- Type
- Dependencies
buildDictionary(paths, deps) → {Dictionary}
- Source:
Build dictionary.
Parameters:
Name | Type | Description |
---|---|---|
paths |
Array.<string> | |
deps |
Dependencies |
Returns:
- Type
- Dictionary
cleanPath(path, optionsopt) → {string}
Cleans up a "path", that is, removes trailing slashes, leading slashes or dot-slashes.
Parameters:
Name | Type | Attributes | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
string | ||||||||||||
options |
Object |
<optional> |
{}
|
Properties
|
Returns:
The cleaned up path
- Type
- string
run(…sequenceItems) → {runCurry}
Run a sequence of functions. Has support for functions that return a promise.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
sequenceItems |
function | Array.<function(), *> |
<repeatable> |
Returns:
- Type
- runCurry
Type Definitions
Definition
- Source:
Properties:
Name | Type | Description |
---|---|---|
path |
string | e.g. |
entirePath |
string | e.g. |
wd |
string | e.g. |
root |
string | e.g. |
dirname |
string | e.g. |
basename |
string | e.g. |
extname |
string | e.g. |
pattern |
string | e.g. |
A dictionary item, a definition.
Type:
- Object
Dependencies
- Source:
Properties:
Name | Type | Description |
---|---|---|
pattern |
string | |
wd |
string | |
root |
string |
A subset of a Definition, is used to initially build a Definition.
Type:
- Object
Dictionary
- Source:
A dictionary.
Type:
- Array.<Definition>
runCurry(…args) → {Promise}
Has different sets of parameters:
Set 1:
(glob_pattern, root_directory_path)
Set 2: Dictionary
Set 3: A Promise of a Dictionary
Set 4: No parameters. Will create a sequence with an empty array.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
Returns:
Returns a promise for a Dictionary
- Type
- Promise