# find-data

> This will search for data in a given object and return the object filtered with only matching data

Latest version **1.0.1** (published 2015-11-02) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install find-data
pnpm add find-data
yarn add find-data
bun add find-data
```

## 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 | 2015-11-02 |
| First published | 2015-11-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ofer Sadgat |
| Maintainers | ofer.sadgat |

## Links

- npm: https://www.npmjs.com/package/find-data
- Repository: https://github.com/ofersadgat/find-data
- Homepage: https://github.com/ofersadgat/find-data#readme
- Issues: https://github.com/ofersadgat/find-data/issues
- npm.io page: https://npm.io/package/find-data

## Recent versions

- 1.0.1 (latest) — 2015-11-02
- 1.0.0 — 2015-11-02

## README

# find-data

This is useful when you are working with a poorly documented API and want to find out how it is storing a given piece of data.

Examples:

```javascript
var a = {
	hello: {
		best: [
			"apple",
			"friend",
			"toad"
		],
		other: 2,
		nope: function(){

		}
	},
	is: "this",
	friend: {
		has: "options"
		including: {
			other: "friends"
		}
	}
};

console.log(JSON.stringify(find('friend', a), null, 2));
```

Outputs:

```javascript
{
	hello: {
		best: [
			null,
			"friend",
			null
		],
	},
	friend: {
		including: {
			other: "friends"
		}
	}
};
```

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