> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# parseSong()

```ts theme={null}
function parseSong(files): Promise<SongDocument>;
```

Parses a song folder into a document. Only the chart and .ini files are read; other files, such as audio, video
and album art, can be byte sources, and are read only when something needs them. Never rejects: a malformed chart
or song.ini is reported when it's read.

## Parameters

| Parameter | Type |
| - | - |
| `files` | readonly [`SongFile`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongFile)\[] |

## Returns

`Promise`\<[`SongDocument`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongDocument)>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.