# mirror-maker

> A simple tool to create an object with values equal to keys from an object or an array.

Latest version **1.0.0** (published 2018-11-15) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install mirror-maker
pnpm add mirror-maker
yarn add mirror-maker
bun add mirror-maker
```

## 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 | 2018-11-15 |
| First published | 2015-12-02 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jack Liao |
| Maintainers | rejoker |
| Keywords | redux, flux, key, mirror |

## Links

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

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-11-15
- 0.1.0 — 2015-12-02

## README

# mirror-maker

Create an object with values equal to keys from an object or an array.

# Usage
`npm install mirror-maker`

```javascript
var mirrorMaker = require('mirror-maker');

console.log(mirrorMaker(['a', 'b']));
// {a: 'a', b: 'b'}
console.log(mirrorMaker({a: 1, b: 2}));
// {a: 'a', b: 'b'}

// prefix
console.log(mirrorMaker(['a', 'b'], 'prefix'));
// {a: 'prefix-a', b: 'prefix-b'}
console.log(mirrorMaker({a: 1, b: 2}, 'lala'));
// {a: 'lala-a', b: 'lala-b'}

```

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