Create a new unit
Optional
name: stringUnit name
Optional
options: UnitOptionsUnit options
Static
Protected
Readonly
UNITSStatic
Protected
Readonly
UNIT_Static
Readonly
UNKNOWNUnit aliases
Alias names as array
Unit name
Name
Protected
prefixesConvert a value in the current unit to a target unit
Converted unit
Get or create a definition from this unit to the base
Definition to base
Protected
findGet the unit specifier
Unit prefix
Unit with specifier
Static
convertConvert a value from a specific unit to a target unit
Converted unit
Static
findStatic
fromJSONStatic
register
Unit
Usage
Creation
Specifiers
You can specify the prefix using the
specifier(...)
function.