Skip to content

Function: parseOsu() ​

Parses .osu file content into a structured OsuBeatmap object.

ts
import { parseOsu } from 'osu-files'

const beatmap = parseOsu(source)

return {
  title: beatmap.metadata.title,
  objects: beatmap.hitObjects.length,
}

Call Signature ​

parseOsu(content): OsuBeatmap

Defined in: src/beatmap/parse.ts:64

Parameters ​

ParameterType
contentstring

Returns ​

OsuBeatmap

Parsed beatmap object.

Released under the MIT License.