Skip to content

Function: parseOsb() ​

Parse a full .osb file into a storyboard and its variable definitions.

ts
import { parseOsb } from 'osu-files'

const parsed = parseOsb(osbSource)

return {
  layers: parsed.storyboard.layers.size,
  variables: Object.keys(parsed.variables).length,
}

Call Signature ​

parseOsb(content): object

Defined in: src/beatmap/storyboard/parse.ts:283

Parameters ​

ParameterType
contentstring

Returns ​

object

storyboard: Storyboard

variables: Record<string, string>

Released under the MIT License.