hexStringToNumber(bits: string)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Convert a hex string to an array of numbers
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
bits | string | Yes | Hex string, e.g., 'AD03' |
Return Value
Type: number[]
Array of numbers parsed from each pair of hex characters
Examples
Basic usage
hexStringToBinString(hexString: string)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Convert a hex string to a binary string
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
hexString | string | Yes | Hex string, e.g., 'A7B9' |
Return Value
Type: string
The corresponding binary string, 8 bits per byte
Examples
Basic usage
camelize(str: string)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Convert a string to camelCase
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
str | string | Yes | The string to convert; supports hyphen, underscore, or space separators |
Return Value
Type: string
A camelCase string with a lowercase first letter
Examples
Basic usage
strToHexString(str: string)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Extract binary fragments from a string and convert them to a hex string
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
str | string | Yes | A string containing '0' and '1' characters; may include other characters |
Return Value
Type: string
The hex string converted from each matched 4-bit binary fragment