---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssconverter-core/functions/applySuffix.md
---
# Function: applySuffix()

> **applySuffix**(`output`, `suffix`): `Map`<`string`, `Uint8Array`<`ArrayBufferLike`>>

Defined in: [src/index.ts:112](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssconverter-core/src/index.ts#L112)

Rename generated `.ssab` files by appending `suffix` to each basename and
drop every non-`.ssab` output. Lets a host emit an embedded variant next to
the normal external outputs (e.g. `foo.ssab` + `foo_embedded.ssab`) without
name clashes.

## Parameters

### output

`Map`<`string`, `Uint8Array`<`ArrayBufferLike`>>

### suffix

`string`

## Returns

`Map`<`string`, `Uint8Array`<`ArrayBufferLike`>>
