# pickachu

> Deep pick

Latest version **2.0.0** (published 2016-07-04) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2.0.0 |
| Published | 2016-07-04 |
| First published | 2016-06-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Clément Denis |
| Maintainers | kigiri |

## Links

- npm: https://www.npmjs.com/package/pickachu
- npm.io page: https://npm.io/package/pickachu

## Recent versions

- 2.0.0 (latest) — 2016-07-04
- 1.0.0 — 2016-06-14

## README

### Pickachu

```
const pick = require('pickachu')

// Sources are not transpiled by default
// So if you are using es5 environement, require the transpiled version :
var pick = require('pickachu/es5')


// Pickachu work like lodash _.pick but is always curried
const filter = pick([ 'a', 'b' ])
filter({ a:1, b:2, c:3 })
// => { a:1, b:2 }

// And it allows for deep path such as :
const filterDeep = pick([ 'a', 'c.a', 'c.b.a', 'c.b.b' ])
filterDeep({ a:1, b:2, c: { a: 3, b: { a: 4, b: 5, c: 6 }, c: 7 } })
// => { a:1, c: { a: 3, b: { a: 4, b: 5 } } }

```

Caveat : Do not play well if your keys contain dots.

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