# keys-in

> [![codecov](https://codecov.io/gh/potato4d/keys-in/branch/master/graph/badge.svg?token=LefazPba8y)](https://codecov.io/gh/potato4d/keys-in)

Latest version **0.1.1** (published 2018-07-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install keys-in
pnpm add keys-in
yarn add keys-in
bun add keys-in
```

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-07-02 |
| First published | 2018-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 121.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | HANATANI Takuma |
| Maintainers | potato4d |

## Links

- npm: https://www.npmjs.com/package/keys-in
- Repository: https://github.com/potato4d/keys-in
- Homepage: https://github.com/potato4d/keys-in#readme
- Issues: https://github.com/potato4d/keys-in/issues
- npm.io page: https://npm.io/package/keys-in

## Dependencies (1)

- [@sindresorhus/is](https://npm.io/package/@sindresorhus/is.md) ^0.9.0

## Recent versions

- 0.1.1 (latest) — 2018-07-02
- 0.1.0 — 2018-07-01

## README

# keys-in

[![codecov](https://codecov.io/gh/potato4d/keys-in/branch/master/graph/badge.svg?token=LefazPba8y)](https://codecov.io/gh/potato4d/keys-in)

Simple object key existence check Library

<center>
  <img src="https://user-images.githubusercontent.com/6993514/42135816-86b91738-7d8b-11e8-9f2f-25171043fdef.png" alt="">
</center>

## Installation

```bash
# use NPM
$ npm install -S keys-in

# use Yarn
$ yarn add keys-in
```

## Usage

keysIn(payload: object, keys: string[]): boolean

```js
import keysIn from 'keys-in'

const payload = { name: 'potato4d' }
const keys = ['name', 'email']

console.log(keysIn(payload, keys))
// false

payload.email = 'mail@potato4d.me'

console.log(keysIn(payload, keys))
// true
```

## Contribution

```bash
# Install package
$ yarn

# Run test
$ yarn test

# Run test with coverage
$ yarn test:coverage
```

## LICENSE

MIT

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