---
title: "Helpers/normalize"
---
# Helpers/normalize

### NUMBER\_FIELDS\_REG

`const` **NUMBER\_FIELDS\_REG**: [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Defined in: [src/core/helpers/normalize/normalize-css-value.ts:16](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-css-value.ts#L16)

### normalizeColor()

**normalizeColor**(`colorInput`): `string` \| `false`

Defined in: [src/core/helpers/normalize/normalize-color.ts:20](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-color.ts#L20)

Convert rgba and short HEX color to Full text color. #fff to #FFFFFF

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `colorInput` | `string` | string like rgba(red, green, blue, alpha) or rgb(red, green, blue) or #fff or #ffffff |

#### Returns

`string` \| `false`

HEX color, false - for transparent color

***

### normalizeCssNumericValue()

**normalizeCssNumericValue**(`key`, `value`): `string` \| `number` \| `null` \| `undefined`

Defined in: [src/core/helpers/normalize/normalize-css-value.ts:19](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-css-value.ts#L19)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `key` | `string` |
| `value` | `string` \| `number` \| `null` \| `undefined` |

#### Returns

`string` \| `number` \| `null` \| `undefined`

***

### normalizeCssValue()

**normalizeCssValue**(`key`, `value`): `string` \| `number`

Defined in: [src/core/helpers/normalize/normalize-css-value.ts:34](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-css-value.ts#L34)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `key` | `string` |
| `value` | `string` \| `number` |

#### Returns

`string` \| `number`

***

### normalizeKeyAliases()

**normalizeKeyAliases**(`keys`): `string`

Defined in: [src/core/helpers/normalize/normalize-key-aliases.ts:18](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-key-aliases.ts#L18)

Normalize keys to some standard name

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `keys` | `string` |

#### Returns

`string`

***

### normalizeLicense()

**normalizeLicense**(`license`, `count?`): `string`

Defined in: [src/core/helpers/normalize/normalize-license.ts:11](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-license.ts#L11)

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `license` | `string` | `undefined` |
| `count` | `number` | `8` |

#### Returns

`string`

***

### normalizePath()

**normalizePath**(...`path`): `string`

Defined in: [src/core/helpers/normalize/normalize-path.ts:16](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-path.ts#L16)

Replaces back slashes and correctly concatenates several parts of the path.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`path` | `string`[] |

#### Returns

`string`

***

### normalizeRelativePath()

**normalizeRelativePath**(`path`): `string`

Defined in: [src/core/helpers/normalize/normalize-relative-path.ts:11](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-relative-path.ts#L11)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `path` | `string` |

#### Returns

`string`

***

### normalizeSize()

**normalizeSize**(`value`, `units`): `string`

Defined in: [src/core/helpers/normalize/normalize-size.ts:14](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-size.ts#L14)

Normalize value to CSS meters

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `string` \| `number` |
| `units` | `"px"` \| `"pt"` |

#### Returns

`string`

***

### normalizeUrl()

**normalizeUrl**(...`urls`): `string`

Defined in: [src/core/helpers/normalize/normalize-url.ts:11](https://github.com/xdan/jodit/blob/main/src/core/helpers/normalize/normalize-url.ts#L11)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`urls` | `string`[] |

#### Returns

`string`
