# unwind

> Generate objects based on a (possibly nested) path and a value.

Latest version **0.0.1** (published 2014-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install unwind
pnpm add unwind
yarn add unwind
bun add unwind
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-06-12 |
| First published | 2014-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pedro Yamada |
| Maintainers | yamadapc |
| Keywords | util, object, metaprogramming, meta, mapping, construction |

## Links

- npm: https://www.npmjs.com/package/unwind
- Repository: https://github.com/yamadapc/node-unwind
- Issues: https://github.com/yamadapc/node-unwind/issues
- npm.io page: https://npm.io/package/unwind

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-06-12

## README

unwind
======

Generate objects based on a (possibly nested) path and a value.

## unwind(path, value)

Generates a simple object based on a (possibly nested) path, and the value
associated with it.

### Params:

* **String** *path* A path, or nested path - a representation of nested keys
* **Mixed** *value* The value to set to this path

### Return:

* **Object** The generated object

## Example:
```javascript
unwind('something.nested', 10)
// => { something: { nested: 10 } }
unwind('something', 'else')
// => { something: 'else' }
```

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