Skip to content

Function: serializeOsb() ​

Serialize a Storyboard and variables into a full .osb file.

ts
import { parseOsb, serializeOsb } from 'osu-files'

const parsed = parseOsb(osbSource)
return serializeOsb(parsed.storyboard, parsed.variables)

Call Signature ​

serializeOsb(storyboard, variables): string

Defined in: src/beatmap/storyboard/serialize.ts:188

Parameters ​

ParameterType
storyboardStoryboard
variablesRecord<string, string>

Returns ​

string

Released under the MIT License.