# deep-value

> get a value from an object within other objects safely

Latest version **1.0.4** (published 2018-01-27) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install deep-value
pnpm add deep-value
yarn add deep-value
bun add deep-value
```

## 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.4 |
| Published | 2018-01-27 |
| First published | 2016-06-14 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dirwin517 |
| Maintainers | dirwin517 |
| Keywords | deep, value, get, retrieve |

## Links

- npm: https://www.npmjs.com/package/deep-value
- Repository: https://github.com/arupex/deep-value
- Homepage: https://github.com/arupex/deep-value#readme
- Issues: https://github.com/arupex/deep-value/issues
- npm.io page: https://npm.io/package/deep-value

## Recent versions

- 1.0.4 (latest) — 2018-01-27
- 1.0.3 — 2016-09-09
- 1.0.2 — 2016-06-21
- 1.0.1 — 2016-06-21
- 1.0.0 — 2016-06-14

## README

# deep-value


[![npm version](https://badge.fury.io/js/deep-value.svg)](https://badge.fury.io/js/deep-value) [![dependencies](https://david-dm.org/arupex/deep-value.svg)](http://github.com/arupex/deep-value) ![Build Status](https://api.travis-ci.org/arupex/deep-value.svg?branch=master) <a href='https://pledgie.com/campaigns/31873'><img alt='Pledge To Arupex!' src='https://pledgie.com/campaigns/31873.png?skin_name=chrome' border='0' ></a> ![lifetimeDownloadCount](https://img.shields.io/npm/dt/deep-value.svg?maxAge=2592000)

#Install

    npm install deep-value --save

#Bower

  bower install deep-value --save


#How to Use (node):

    var deep = require('deep-value');

    console.log('Checking, ' deep({ my : { value : 7} }, 'my.value'));  // 7

    console.log('Checking, ' deep({ my : {} }, 'my.value'));            // undefined

    console.log('Checking, ' deep({ notMine : {} }, 'my.value'));       // undefined

#How to use (Browser):

    var deep = arupex_deep_value;
   

# Array Accessor
Finds the element in an array that follows the correct values and returns the value from it you want, if you dont want a value from it but want the whole object dont include a last key

    console.log('Checking, ' deep({ notMine : [{ i : 1 , b : 2},{ i : 2, b : 2},{ i : 2, b : 1, v : 2}] }, 'notMine.@i==2,@b==1.v'));       // 2

    console.log('Checking, ' deep({ notMine : [{ i : 1 , b : 2},{ i : 2, b : 2},{ i : 2, b : 1, v : 2}] }, 'notMine.@i==2,@b==1'));       // { i : 2, b : 1, v : 2}

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