Sample code for 30+ languages & platforms
React Native

UnGzip .tgz to get a .tar

See more Tar Archive Examples

A .tgz is simply a TAR archive compressed using GZip. It is also commonly referred to as a .tar.gz. Chilkat GZip can be used to ungzip to get an uncompressed .tar.

Chilkat React Native Downloads

React Native
import { Gzip } from '@chilkat/react-native'

async function chilkatExample() {
  const gzip = new Gzip();

  try {
    await gzip.uncompressFileAsync('qa_data/tar/test.tgz', 'qa_output/test.tar');
    console.log('success.');
  } catch {
    console.log(gzip.lastErrorText);
  }
}