Members
-
<static> DEFAULT_RESOURCE
-
Properties
Name Type Description DEFAULT_RESOURCE
string Details
-
<static> PATH_RESOURCE_MATCHER
-
Description
Uri path resource matcherProperties
Name Type Description PATH_RESOURCE_MATCHER
RegExp Details
Methods
-
<static> find( settings, prefix [, cwd ] ) → {string}
-
Description
Find first possible existing path for the given settingsParameters
Name Type Attributes Default Description settings
Object Path Seek Settings Object Name Type Attributes Default Description target
string <optional> '' Target resource path ext
string | Array.<string> <optional> 'json' Mock target extension to find prefix
string Mock prefix: {PATH}.{PREFIX}.{EXT} cwd
string <optional> process.cwd() Current Working Directory: Path to seek for resources Returns
Details
-
<generator, static> partialSearch( relativePath ) → {Array.<Array.<string>>}
-
Description
Returns a list of all possible paths, for the given resource, sorted by priorityParameters
Name Type Description relativePath
Array.<string> Target resource path array Returns
Details
-
<generator, static> seekPathList( settings, prefix ) → {Array.<string>}
-
Description
Returns a list of all possible paths, for the given resource settings, sorted by priorityParameters
Name Type Description settings
Object Path Seek Settings Object Name Type Attributes Default Description target
string Target resource path ext
string | Array.<string> <optional> 'json' Mock target extension to find prefix
string Mock prefix: {PATH}.{PREFIX}.{EXT} Returns
Details