{"id":21806685,"url":"https://github.com/hungtcs/tar-extract","last_synced_at":"2025-03-21T08:12:45.383Z","repository":{"id":195960684,"uuid":"694061645","full_name":"hungtcs/tar-extract","owner":"hungtcs","description":"A node.js package for extracting .tar and .tar.gz files","archived":false,"fork":false,"pushed_at":"2023-09-20T09:01:43.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T15:38:48.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hungtcs.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}},"created_at":"2023-09-20T08:55:13.000Z","updated_at":"2023-09-20T09:01:47.000Z","dependencies_parsed_at":"2023-09-20T11:06:47.742Z","dependency_job_id":"4b3f0d54-050e-42af-92e5-c960d3ac6cec","html_url":"https://github.com/hungtcs/tar-extract","commit_stats":null,"previous_names":["hungtcs/tar-extract"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Ftar-extract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Ftar-extract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Ftar-extract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Ftar-extract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hungtcs","download_url":"https://codeload.github.com/hungtcs/tar-extract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244759962,"owners_count":20505716,"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-11-27T12:29:17.287Z","updated_at":"2025-03-21T08:12:45.360Z","avatar_url":"https://github.com/hungtcs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tar Extract\n\n`tar-extract` is a Node.js package for extracting `.tar` and `.tar.gz` files.\nIt provides a simple and easy-to-use API for decompressing these common archive file formats.\n\n## Installation\n\n```shell\nnpm install tar-extract\n```\n\nOr use pnpm:\n\n```shell\npnpm add tar-extract\n```\n\n## Usage Example\n\n```ts\nimport { extract } from \"tar-extract\";\n\nextract(\"./00.tar.gz\", \"./\").catch((err) =\u003e\n  console.error(\"extract failed: \", err)\n);\n```\n\n## API Documentation\n\n### `extract(path: string, dest: string)`\n\nExtracts a `.tar` or `.tar.gz` file to the specified directory.\n\n- `path` path of the archive file\n- `dest` path to extract to\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungtcs%2Ftar-extract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhungtcs%2Ftar-extract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungtcs%2Ftar-extract/lists"}