Members
-
<static> DEFAULT_RESOURCE
-
Properties
Name Type Description DEFAULT_RESOURCEstring Details
-
<static> PATH_RESOURCE_MATCHER
-
Description
Uri path resource matcherProperties
Name Type Description PATH_RESOURCE_MATCHERRegExp Details
Methods
-
<static> find( settings, prefix [, cwd ] ) → {string}
-
Description
Find first possible existing path for the given settingsParameters
Name Type Attributes Default Description settingsObject Path Seek Settings Object Name Type Attributes Default Description targetstring <optional> '' Target resource path extstring | Array.<string> <optional> 'json' Mock target extension to find prefixstring Mock prefix: {PATH}.{PREFIX}.{EXT} cwdstring <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 relativePathArray.<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 settingsObject Path Seek Settings Object Name Type Attributes Default Description targetstring Target resource path extstring | Array.<string> <optional> 'json' Mock target extension to find prefixstring Mock prefix: {PATH}.{PREFIX}.{EXT} Returns
Details