> For the complete documentation index, see [llms.txt](https://musicq.gitbook.io/unwrapit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://musicq.gitbook.io/unwrapit/intro/getting-started.md).

# Getting Started

## Installation

{% tabs %}
{% tab title="pnpm" %}

```bash
pnpm i unwrapit
```

{% endtab %}

{% tab title="yarn" %}

```bash
yarn add unwrapit
```

{% endtab %}

{% tab title="npm" %}

```bash
npm i unwrapit
```

{% endtab %}
{% endtabs %}

## Usage

```typescript
import { wrap } from 'unwrapit'

async function main() {
    const get = wrap(fetch)
    const res = await get('https://google.com')

    console.log(res.unwrap().status)
}

main()
```
