Skip to content

Function: serializeOsu() ​

Serializes an OsuBeatmap back to .osu text format.

ts
import { parseOsu, serializeOsu } from 'osu-files'

const beatmap = parseOsu(source)
const text = serializeOsu(beatmap)

return text.split('\\n').slice(0, 4).join('\\n')

Call Signature ​

serializeOsu(beatmap): string

Defined in: src/beatmap/serialize.ts:178

Parameters ​

ParameterType
beatmapOsuBeatmap

Returns ​

string

.osu file content as string.

Released under the MIT License.