# vue-deepunref

> Deeply un-reference Vue objects.

Latest version **1.0.1** (published 2021-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-deepunref
pnpm add vue-deepunref
yarn add vue-deepunref
bun add vue-deepunref
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-09-09 |
| First published | 2021-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Dan Hulton |
| Maintainers | danhulton |
| Keywords | vue, vue3, ref, unref, deep |

## Links

- npm: https://www.npmjs.com/package/vue-deepunref
- Repository: https://github.com/DanHulton/vue-deepunref
- Homepage: https://github.com/DanHulton/vue-deepunref#readme
- Issues: https://github.com/DanHulton/vue-deepunref/issues
- npm.io page: https://npm.io/package/vue-deepunref

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3

## Recent versions

- 1.0.1 (latest) — 2021-09-09
- 1.0.0 — 2021-09-09

## README

# Vue deepUnref

The counterpart to Vue 3's [toRefs](https://v3.vuejs.org/api/refs-api.html#torefs), `deepUnref` will apply `unref` recursively until you have an object or array that is completely free of refs.  Useful for when you need to pass, for example, a "form" object full of refs to a validation library or to a POST endpoint.

## Installation

`yarn add vue-deepunref`
`npm install vue-deepunref`

## Usage

```javascript
import { deepUnref } from 'vue-deepunref';

const form = {
  name: ref('Abc Def'),
  email: ref('abc@def.com'),
}

saveRest({ ...deepUnref(form) });
```

---
_Source: https://npm.io/package/vue-deepunref · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
