# 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()
```
