# pluckey

> A tiny util library to pluck key from deep arrays and objects

Latest version **1.0.1** (published 2019-11-07) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2019-11-07 |
| First published | 2019-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | excitepv |
| Keywords | plucky, npm, package, excitepv, pluck keys from array, pluck keys, dynamic pluck keys |

## Links

- npm: https://www.npmjs.com/package/pluckey
- Repository: https://github.com/excitepv/pluckey
- Homepage: https://github.com/excitepv/pluckey#readme
- Issues: https://github.com/excitepv/pluckey/issues
- npm.io page: https://npm.io/package/pluckey

## Recent versions

- 1.0.1 (latest) — 2019-11-07
- 1.0.0 — 2019-08-30

## README

# pluckey - plucks key
A tiny util library to pluck key from deep arrays and objects

```js
const pluckey = require('pluckey');

//sample object
let college={
	class:{
		student:[{
			'name':'Vigneshwaran P',
			'rollNo':'103',
			'results':[
				{
					'subject': 'Tamil',
					'mark':99
				},
				{
					'subject': 'Nodejs',
					'mark':80
				}
			]
		},
		{
			'name':'Bob',
			'rollNo':'102',
			'results':[
				{
					'subject': 'English',
					'mark':88
				},
				{
					'subject': 'Nodejs',
					'mark':89
				}
			]
		}
		]
	}
}

pluckey(college,'class.student.results.subject');
//output=> [ 'Tamil', 'Nodejs', 'English', 'Nodejs' ]

pluckey(college,'class.student.results'); 
/*output=> [
  { subject: 'Tamil', mark: 99 },
  { subject: 'Nodejs', mark: 80 },
  { subject: 'English', mark: 88 },
  { subject: 'Nodejs', mark: 89 }
]*/

pluckey(college,'class.student.name');
//output=>[ 'Vigneshwaran P', 'Bob' ]
```

## Installation
Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```bash
$ npm install pluckey
```

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