{"id":21098234,"url":"https://github.com/ankitrohatgi/tarballjs","last_synced_at":"2025-05-16T16:32:02.137Z","repository":{"id":24773910,"uuid":"102413807","full_name":"ankitrohatgi/tarballjs","owner":"ankitrohatgi","description":"Javascript library to create or read tar files in the browser","archived":false,"fork":false,"pushed_at":"2024-04-25T05:55:22.000Z","size":53,"stargazers_count":61,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T03:51:03.339Z","etag":null,"topics":["javascript","javascript-library","tar","tar-archive","tarball"],"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/ankitrohatgi.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":"2017-09-05T00:19:51.000Z","updated_at":"2025-04-02T17:17:33.000Z","dependencies_parsed_at":"2024-11-20T13:46:15.260Z","dependency_job_id":null,"html_url":"https://github.com/ankitrohatgi/tarballjs","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/ankitrohatgi%2Ftarballjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrohatgi%2Ftarballjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrohatgi%2Ftarballjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrohatgi%2Ftarballjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankitrohatgi","download_url":"https://codeload.github.com/ankitrohatgi/tarballjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254567449,"owners_count":22092773,"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":["javascript","javascript-library","tar","tar-archive","tarball"],"created_at":"2024-11-19T22:54:06.536Z","updated_at":"2025-05-16T16:32:01.788Z","avatar_url":"https://github.com/ankitrohatgi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tarballjs\nJavascript library to create or read tar files in the browser\n\n## Why?\nIt is often necessary to pack data into single files in the browser (e.g. creating a \"project\" file consisting of images+data in WebPlotDigitizer). One way is to create simple tarballs with all the data. There are a few existing libraries that do this, but this seems easy enough to do so I decided to do make my own library for learning purposes.\n\n## Status\nRefer to https://www.npmjs.com/package/@gera2ld/tarjs for a better maintained version of this code. This code is mainly used to support WebPlotDigitizer. \n\nThere are a few known limitations with this library:\n\n- Browser only, no support for NodeJS.\n- File name (including path) has to be less than 100 characters.\n- Maximum total file size seems to be limited to somewhere between 500MB to 1GB (exact limit is unknown).\n\nSome benefits of using this library:\n\n- Code is a lot cleaner than most other implementations that I can find.\n- Unit tests for read and write.\n\n## Browser Support\nThis works fine on any recent version of Chrome, Firefox or Safari.\n\n## Running Unit Tests\nFor Chrome, the test page has to be hosted on a HTTP server. An easy way is to use Python:\n\nIn the root directory of this project, do:\n\n    python3 -m http.server 8000\n\nThen browse to http://localhost:8000/tests/\n\nIn Firefox, you can simply load tests/index.html without starting a web server.\n\n## Other Implementations\n\n- https://github.com/beatgammit/tar-js\n- https://github.com/chriswininger/jstar\n- https://github.com/InvokIT/js-untar (reading only)\n- https://github.com/workhorsy/uncompress.js (reading only)\n- http://stuk.github.io/jszip/ (active and well maintained project but for .zip files)\n\nIf you are aware of other implementations, then please let me know :)\n\n## References\n\n- https://en.wikipedia.org/wiki/Tar_(computing)\n- https://www.gnu.org/software/tar/manual/html_node/Standard.html\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitrohatgi%2Ftarballjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankitrohatgi%2Ftarballjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitrohatgi%2Ftarballjs/lists"}