# rikey

> Useful utilities for manipulating–and creating–Object instances.

Latest version **0.1.0** (published 2021-02-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-02-17 |
| First published | 2021-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ryan Hefner |
| Maintainers | ryanhefner |
| Keywords | react, nextjs, props, getStaticProps, getServerSideProps |

## Links

- npm: https://www.npmjs.com/package/rikey
- Repository: https://github.com/ryanhefner/rikey
- Homepage: https://github.com/ryanhefner/rikey#readme
- Issues: https://github.com/ryanhefner/rikey/issues
- Funding: https://github.com/sponsors/ryanhefner
- npm.io page: https://npm.io/package/rikey

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2021-02-17

## README

# 🧰 rikey

_(pronouned rē-kē, because `rekey` was taken)_

[![npm](https://img.shields.io/npm/v/rikey?style=flat-square)](https://www.pkgstats.com/pkg:rikey)
[![NPM](https://img.shields.io/npm/l/rikey?style=flat-square)](LICENSE)
[![npm](https://img.shields.io/npm/dt/rikey?style=flat-square)](https://www.pkgstats.com/pkg:rikey)
[![Coveralls github](https://img.shields.io/coveralls/github/ryanhefner/rikey?style=flat-square)](https://coveralls.io/github/ryanhefner/rikey)
[![codecov](https://codecov.io/gh/ryanhefner/rikey/branch/master/graph/badge.svg)](https://codecov.io/gh/ryanhefner/rikey)
[![CircleCI](https://img.shields.io/circleci/build/github/ryanhefner/rikey?style=flat-square)](https://circleci.com/gh/ryanhefner/rikey)

Useful utilities for manipulating–and creating–Object instances.

## Install

Via [npm](https://npmjs.com/package/rikey)

```
npm install --save rikey
```

Via [Yarn](https://yarn.fyi/rikey)

```
yarn add rikey
```

## How to use

### `reKey`

```js
import { reKey } from 'rikey'

const newKeys = reKey({
  oldKey: 'something',
  olderKey: 'nothing',
}, {
  oldKey: 'newKey',
  olderKey: 'newerKey'
})

console.log(newKeys)
```
```
Output: { newKey: 'something', newerKey: 'nothing' }
```

### `mapKeys`

```js
const mappedKeys = mapKeys([0, 1, 2], ['first', 'second', 'third'])
console.lot(mappedKeys)
```
```
Output: { first: 0, second: 1, third: 2 }
```

## License

[MIT](LICENSE) © [Ryan Hefner](https://www.ryanhefner.com)

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