---
title: "@vltpkg/cache-unzip: unzip — vlt docs"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/api-reference/cache-unzip/unzip"
image: "https://docs.vlt.io/og/client/api-reference/cache-unzip/unzip"
lang: "en"
---

# unzip

## Variables

### \_\_CODE_SPLIT_SCRIPT_NAME

```ts
const __CODE_SPLIT_SCRIPT_NAME: string;
```

Defined in: unzip.ts:11

## Functions

### default()

```ts
function default(
   path, 
   input, 
store?): Promise<boolean>
```

Defined in: unzip.ts:42

Explode the tarball cache entries at the keys read from `input` into the global store root `store`, if given, then rewrite the rest un-gzipped: entries this run exploded stay gzipped. `VLT_CACHE_UNZIP=0` never un-gzips, `=1` un-gzips every entry, before exploding. Keys are `\0`-separated, each optionally followed by `\t` and the integrity it is cached under. False on no `path` or a failed explode; throws on a corrupt gzip.

#### Parameters

| Parameter | Type                    | Default value   |
| --------- | ----------------------- | --------------- |
| `path`    | `undefined` \| `string` | `undefined`     |
| `input`   | `EventEmitter`          | `process.stdin` |
| `store`?  | `string`                | `undefined`     |

#### Returns

`Promise`<`boolean`>
