{"id":17109002,"url":"https://github.com/reklatsmasters/bsa","last_synced_at":"2025-10-09T09:19:16.462Z","repository":{"id":66102118,"uuid":"71072004","full_name":"reklatsmasters/bsa","owner":"reklatsmasters","description":"Bethesda Softworks Archive compress/decompress","archived":false,"fork":false,"pushed_at":"2017-01-02T11:11:37.000Z","size":39,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T02:52:25.112Z","etag":null,"topics":["archive","bethesda","bsa","compress","decompress","extract","js","node","oblivion","skyrim","tes"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reklatsmasters.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2016-10-16T19:24:33.000Z","updated_at":"2024-06-18T21:48:59.000Z","dependencies_parsed_at":"2023-03-18T06:00:30.517Z","dependency_job_id":null,"html_url":"https://github.com/reklatsmasters/bsa","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"22a28610fac5032cb27b824fac129ccd9a6a49f2"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reklatsmasters%2Fbsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reklatsmasters%2Fbsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reklatsmasters%2Fbsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reklatsmasters%2Fbsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reklatsmasters","download_url":"https://codeload.github.com/reklatsmasters/bsa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657874,"owners_count":21140844,"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":["archive","bethesda","bsa","compress","decompress","extract","js","node","oblivion","skyrim","tes"],"created_at":"2024-10-14T16:06:59.157Z","updated_at":"2025-10-09T09:19:16.449Z","avatar_url":"https://github.com/reklatsmasters.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bsa\n[![travis](https://travis-ci.org/ReklatsMasters/bsa.svg)](https://travis-ci.org/ReklatsMasters/bsa)\n[![npm](https://img.shields.io/npm/v/bsa.svg)](https://npmjs.org/package/bsa)\n[![license](https://img.shields.io/npm/l/bsa.svg)](https://npmjs.org/package/bsa)\n[![downloads](https://img.shields.io/npm/dm/bsa.svg)](https://npmjs.org/package/bsa)\n\nBethesda Softworks Archive extractor. Currently supports v103 only.\n\n## Usage\n\n```js\nimport * as bsa from 'bsa';\n\nconst file = fs.readFileSync('../Oblivion/Data/DLCShiveringIsles - Voices.bsa');\nconsole.log(bsa.ls(file));\n\n/*\noutput:\n\n[ 'sound\\\\voice\\\\oblivion.esm\\\\imperial\\\\f\\\\senqdmania_goodbye_00040bb3_1.mp3',\n  'sound\\\\voice\\\\oblivion.esm\\\\imperial\\\\f\\\\senqddementia_greeting_00068bc0_1.mp3',\n  'sound\\\\voice\\\\oblivion.esm\\\\imperial\\\\f\\\\senqddementia_greeting_00068bca_1.mp3',\n  'sound\\\\voice\\\\oblivion.esm\\\\imperial\\\\f\\\\se38_se38talkitemc_00082436_1.lip',\n  // more other files...\n]\n*/\n```\n\n## API\n\n#### `list(buf: Buffer): Array\u003cstring\u003e`\n#### `ls(buf: Buffer): Array\u003cstring\u003e`\nReturn the list of files with folder names in archive\n\n#### `extractFile(buf: Buffer, index: Number): Buffer`\nExtract file based on index in file list.\n\n#### `extract* (buf: Buffer)`\nIterator / generator to extract all files.\n\n```js\nfor (const file of bsa.extract(bsafile)) {\n  // do stuff...\n}\n```\n\n## License\nMIT, 2016 - 2025 (c) Dmitry Tsvettsikh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freklatsmasters%2Fbsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freklatsmasters%2Fbsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freklatsmasters%2Fbsa/lists"}