# mirror-key-value

> Mirroring to keys and values from array of strings

Latest version **1.0.5** (published 2016-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install mirror-key-value
pnpm add mirror-key-value
yarn add mirror-key-value
bun add mirror-key-value
```

## 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.5 |
| Published | 2016-05-22 |
| First published | 2016-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | sugarshin |
| Maintainers | sugarshin |
| Keywords | mirror, utility, array, object, key-value, action-types, flux |

## Links

- npm: https://www.npmjs.com/package/mirror-key-value
- Repository: https://github.com/sugarshin/mirror-key-value
- Homepage: https://github.com/sugarshin/mirror-key-value#readme
- Issues: https://github.com/sugarshin/mirror-key-value/issues
- npm.io page: https://npm.io/package/mirror-key-value

## 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

- 1.0.5 (latest) — 2016-05-22
- 1.0.4 — 2016-05-07
- 1.0.2 — 2016-03-24
- 1.0.1 — 2016-02-12
- 1.0.0 — 2016-02-12

## README

# mirror-key-value

[![Build Status][travis-image]][travis-url]
[![Dependency Status][david-image]][david-url]
[![Devdependency Status][david-dev-image]][david-dev-url]
[![npm version][npm-image]][npm-url]
[![License][license-image]][license-url]

Mirroring to keys and values from array of strings

```
npm i mirror-key-value
```

## Usage

```js
import mirrorKeyValue from 'mirror-key-value';

mirrorKeyValue(['val1', 'val2']); // => { val1: 'val1', val2: 'val2' }
```

Create action types of Flux application as an example use

```js
// action-types.js
export default mirrorKeyValue([
  'ADD_TODO',
  'DELETE_TODO',
  'CHANGE_COMPLETE'
]);

//

import types from './constants/action-types';
```

## Contributing

1. Fork it!
2. Create your feature branch: git checkout -b my-new-feature
3. Commit your changes: git commit -am 'Add some feature'
4. Push to the branch: git push origin my-new-feature
5. Submit a pull request :D

## License

[MIT][license-url]

© sugarshin

[npm-image]: http://img.shields.io/npm/v/mirror-key-value.svg?style=flat-square
[npm-url]: https://www.npmjs.org/package/mirror-key-value
[travis-image]: http://img.shields.io/travis/sugarshin/mirror-key-value/master.svg?branch=master&style=flat-square
[travis-url]: https://travis-ci.org/sugarshin/mirror-key-value
[david-image]: https://david-dm.org/sugarshin/mirror-key-value.svg?style=flat-square
[david-url]: https://david-dm.org/sugarshin/mirror-key-value
[david-dev-image]: https://david-dm.org/sugarshin/mirror-key-value/dev-status.svg?style=flat-square
[david-dev-url]: https://david-dm.org/sugarshin/mirror-key-value#info=devDependencies
[license-image]: http://img.shields.io/:license-mit-blue.svg?style=flat-square
[license-url]: http://sugarshin.mit-license.org/

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