{"id":20804415,"url":"https://github.com/sequencemedia/music-library","last_synced_at":"2025-10-12T13:24:19.734Z","repository":{"id":36979300,"uuid":"442138847","full_name":"sequencemedia/music-library","owner":"sequencemedia","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-08T05:29:03.000Z","size":3503,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T07:16:52.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sequencemedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-27T11:21:15.000Z","updated_at":"2025-10-08T05:29:05.000Z","dependencies_parsed_at":"2023-10-17T08:46:55.125Z","dependency_job_id":"6b67fcb0-fad6-4a97-8b46-0da79408fdf2","html_url":"https://github.com/sequencemedia/music-library","commit_stats":{"total_commits":1078,"total_committers":4,"mean_commits":269.5,"dds":"0.012987012987012991","last_synced_commit":"117d4ca22d230838b5f1f7b27db0ded25b241283"},"previous_names":[],"tags_count":1000,"template":false,"template_full_name":null,"purl":"pkg:github/sequencemedia/music-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Fmusic-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Fmusic-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Fmusic-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Fmusic-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sequencemedia","download_url":"https://codeload.github.com/sequencemedia/music-library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Fmusic-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002531,"owners_count":26083399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T19:09:18.224Z","updated_at":"2025-10-12T13:24:19.718Z","avatar_url":"https://github.com/sequencemedia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @sequencemedia/music-library\n\nParses an Apple Music `Library.xml` file and transforms it to [`m3u`](https://en.wikipedia.org/wiki/M3U) files, JSON, JavaScript, or EcmaScript.\n\nThe command line app can watch for changes to an Apple Music `Library.xml` file and write `m3u` files to a destination directory.\n\nOr, the component functions can be imported into your own application. \n\nThis packages implements [`@sequencemedia/music-library-parser`](https://github.com/sequencemedia/music-library-parser).\n\nRequires [Java](https://www.oracle.com/java/technologies/javase-downloads.html) and [Saxon PE](https://www.saxonica.com/welcome/welcome.xml).\n\n## Command line app\n\n```\nnpm run start -- \\\n  --jar \"/usr/local/bin/saxon/SaxonPE10-6J/saxon-pe-10.6.jar\" \\\n  --xml \"~/Music/Music/Library.xml\" \\\n  --destination \"~/Documents/Music Library\"\n```\n\nPaths will differ on your device.\n\n## Library\n\nTransforms the entire library.\n\n```javascript\nimport { toM3U } from './src/library/index.mjs'\nimport {\n  toJSON,\n  toJS,\n  toES\n } from './src/library/transform/index.mjs'\n```\n\n### `toM3U`\n\nRequires the arguments `jar`, `xml`, and `destination`.\n\n- `jar` - the path to the Saxon binary on your device\n- `xml` - the path to the Apple Music `Library.xml` file\n- `destination` - the path for the `m3u` files to be written\n\nReturns a `Promise` resolving when all `m3u` files are written.\n\n### `toJSON`\n\nRequires the arguments `jar`, and `xml`.\n\n- `jar` - the path to the Saxon binary on your device\n- `xml` - the path to the Apple Music `Library.xml` file\n\nReturns a `Promise` resolving to a `JSON` string.\n\n### `toJS`\n\nRequires the arguments `jar`, and `xml`.\n\n- `jar` - the path to the Saxon binary on your device\n- `xml` - the path to the Apple Music `Library.xml` file\n\nReturns a `Promise` resolving to a JavaScript object.\n\n### `toES`\n\nRequires the arguments `jar`, and `xml`.\n\n- `jar` - the path to the Saxon binary on your device\n- `xml` - the path to the Apple Music `Library.xml` file\n\nReturns a `Promise` resolving to a collection of JavaScript `Map` and `Set` instances.\n\n## Playlists\n\nTransforms the playlists.\n\n```javascript\nimport { toM3U } from './src/library/playlists/index.mjs'\nimport {\n  toJSON,\n  toJS,\n  toES\n } from './src/library/playlists/transform/index.mjs'\n```\n\nSee **Library**.\n\n## Tracks\n\nTransforms the tracks.\n\n```javascript\nimport { toM3U } from './src/library/tracks/index.mjs'\nimport {\n  toJSON,\n  toJS,\n  toES\n } from './src/library/tracks/transform/index.mjs'\n```\n\nSee **Library**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsequencemedia%2Fmusic-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsequencemedia%2Fmusic-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsequencemedia%2Fmusic-library/lists"}