Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

rikey

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rikey

Useful utilities for manipulating–and creating–Object instances.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

🧰 rikey

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

npm NPM npm Coveralls github codecov CircleCI

Useful utilities for manipulating–and creating–Object instances.

Install

Via npm

npm install --save rikey

Via Yarn

yarn add rikey

How to use

reKey

import { reKey } from 'rikey'

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

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

mapKeys

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

License

MIT © Ryan Hefner

Keywords

react

FAQs

Package last updated on 17 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts