Classes
-
new Dispatcher( ...eventTypes )
-
-
new MessageQueue()
-
-
new NumberOp( value )
-
-
new FactoryTypeError()
-
-
new DefaultMap( factory [, iterable ] )
-
-
new Logger( loggerName )
-
-
new Service( shortName )
-
Methods
-
<static> ensure( versions ) → {object}
-
Description
Ensures appropriate versions of NexusHoratio libraries are loaded.
Parameters
Name Type Description versionsArray.<NexusHoratio.base~Version> Versions required.
Returns
Throws
Details
-
<inner> runTests()
-
Description
Basic test runner.
This depends on
Logger, hence the location in this file instead ofNexusHoratio.xunit.Details
-
<static> uuId( strBase ) → {string}
-
Description
Create a UUID-like string with a base.
Parameters
Name Type Description strBasestring Base value for the string.
Returns
Details
-
<static> safeId( input ) → {string}
-
Description
Normalize a string to be safe to use as an HTML element id.
Parameters
Name Type Description inputstring The string to normalize.
Returns
Details
-
<static> strHash( s ) → {string}
-
Description
Jenkins one at a time hash.
Parameters
Name Type Description sstring String to hash.
Returns
Details
-
<static> simpleParseWords( text ) → {Array.<string>}
-
Description
Separate a string of concatenated words along transitions.
- Transitions are:
- lower to upper (lowerUpper -> lower Upper)
- grouped upper to lower (ABCd -> AB Cd)
- underscores (snake_case -> snake case)
- spaces
- character/numbers (lower2Upper -> lower 2 Upper)
- Likely only works with ASCII.
- Empty strings return an empty array.
- Extra separators are consolidated.
Parameters
Name Type Description textstring Text to parse.
Returns
Details
- Transitions are:
Type Definitions
-
Version
-
Properties
Name Type Attributes Default Description namestring Library name.
minVersionnumber <optional> 0 Minimal version needed.
Details