Skip to content

Add detector for .tar.gz (gunzipped tarball file)#763

Merged
sindresorhus merged 1 commit intomainfrom
detect-tar.gz
Jun 8, 2025
Merged

Add detector for .tar.gz (gunzipped tarball file)#763
sindresorhus merged 1 commit intomainfrom
detect-tar.gz

Conversation

@Borewit
Copy link
Collaborator

@Borewit Borewit commented Jun 8, 2025

I chose .tar.gz over .tgz because I believe it is more accurate. The former reflects a nested file format—first archived with tar, then compressed with gzip—rather than a specialized or alternative extension.

Resolves: #606

@Borewit Borewit self-assigned this Jun 8, 2025
@Borewit Borewit added the enhancement Add new functionality label Jun 8, 2025
@Borewit Borewit requested a review from sindresorhus June 8, 2025 13:42
@sindresorhus sindresorhus merged commit eda03a7 into main Jun 8, 2025
6 checks passed
@sindresorhus sindresorhus deleted the detect-tar.gz branch June 8, 2025 23:42
@achingbrain achingbrain mentioned this pull request Nov 18, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Add new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add application/x-compressed-tar for *.tgz

2 participants