{"id":17347189,"url":"https://github.com/ianmitchell/aegisub-parser","last_synced_at":"2025-03-27T11:19:40.687Z","repository":{"id":57173859,"uuid":"76221242","full_name":"IanMitchell/aegisub-parser","owner":"IanMitchell","description":"Parses Aegisub files","archived":false,"fork":false,"pushed_at":"2016-12-23T21:28:41.000Z","size":458,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T18:38:22.890Z","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/IanMitchell.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}},"created_at":"2016-12-12T04:12:04.000Z","updated_at":"2023-08-18T09:09:41.000Z","dependencies_parsed_at":"2022-08-24T13:20:35.036Z","dependency_job_id":null,"html_url":"https://github.com/IanMitchell/aegisub-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Faegisub-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Faegisub-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Faegisub-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Faegisub-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IanMitchell","download_url":"https://codeload.github.com/IanMitchell/aegisub-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832746,"owners_count":20679702,"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","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-10-15T16:47:53.181Z","updated_at":"2025-03-27T11:19:40.658Z","avatar_url":"https://github.com/IanMitchell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aegisub Parser\n\nParses [Aegisub](http://www.aegisub.org/) files (.ass). Easily extensible for past/future sections.\n\n## Installation\n\n```\nnpm install aegisub-parser --save\n```\n\n## Usage\n\n```javascript\nconst AegisubParser = require('aegisub-parser');\n\nAegisubParser.parse('./full_metal_panic_01.ass').then(script =\u003e {\n  console.log(script.events.length);\n}).catch(err) {\n  if (err instanceof AegisubInvalidStyle) {\n    console.log('Please validate your Aegisub styles.');\n  } else if (err instanceof AegisubInvalidEvent) {\n    console.log('Please validate your Aegisub events.');\n  }\n};  \n```\n\nThis returns an `AegisubScript` object, which given a standard v4 file looks like the following:\n\n* **AegisubScript** Properties\n  * `info` (Map): Map of info section key/value pairs.\n  * `garbage` (Map): Map of garbage section key/value pairs.\n  * `styles` (Map): Map of styles in name/Map\u003cHeader,Value\u003e pairs.\n  * `events` (Array): Array of Map\u003cHeader,Value\u003e objects in sequential order.\n\n## Special Thanks\n\nToby, Matthias, and Good Job Media! for design assistance and spec clarification.\n\nTest files pulled from Vivid and Good Job Media! GitHub Repositories.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmitchell%2Faegisub-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianmitchell%2Faegisub-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmitchell%2Faegisub-parser/lists"}