# object-swap

> Switch the object key and value.

Latest version **1.0.0** (published 2015-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-swap
pnpm add object-swap
yarn add object-swap
bun add object-swap
```

## 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.0 |
| Published | 2015-12-21 |
| First published | 2015-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bjarne Oeverli |
| Maintainers | bjarneo |
| Keywords | object, flip, swap, exchange, switch, key, value |

## Links

- npm: https://www.npmjs.com/package/object-swap
- Repository: https://github.com/bjarneo/object-swap
- Issues: https://github.com/bjarneo/object-swap/issues
- npm.io page: https://npm.io/package/object-swap

## Recent versions

- 1.0.0 (latest) — 2015-12-21

## README

object-swap
======

What
------
Switch the object key and value. It doesn't work with nested objects.

Installation
------
```
$ npm install --save object-swap
```

Usage
------
```javascript
var swap = require('object-swap');

console.log(swap({
    a: 1,
    b: 2,
    c: 3
}));

// { '1': 'a', '2': 'b', '3': 'c' }

```

Test
------
```
npm test
```

Contribution
------
Contributions are appreciated.

License
------
MIT-licensed. See LICENSE.

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