Convert string chars to hexadecimal unicode (4 digits)
Install
Install all functions of strman
yarn add strmanor just the hexEncode function
yarn add strman.hexencodeUsage
import { hexEncode } from 'strman'
// OR
import hexEncode from 'strman.hexencode'Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | Value to encode |
- Source:
Returns:
String in hexadecimal format.
- Type
- String
Example
hexEncode('strman')
// => '007300740072006d0061006e'