# value-get

> Create functional property getters

Latest version **1.0.0** (published 2015-11-05) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-11-05 |
| First published | 2015-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | value, get, functional, partial, dot, prop, property, getter |

## Links

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

## Dependencies (2)

- [ap](https://npm.io/package/ap.md) ~0.2.0
- [dot-prop](https://npm.io/package/dot-prop.md) ~2.2.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-11-05

## README

# value-get [![Build Status](https://travis-ci.org/bendrucker/value-get.svg?branch=master)](https://travis-ci.org/bendrucker/value-get) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/value-get.svg)](https://greenkeeper.io/)

> Create functional property getters


## Install

```
$ npm install --save value-get
```


## Usage

```js
var get = require('value-get')

get('foo', {foo: 'bar'})
//=> bar

var getFoo = get('foo')
getFoo({foo: 'bar'})
//=> bar

var getDeepBar = get('foo.bar')
getDeepBar({foo: {bar: 'baz'}})
//=> baz
```

## API

#### `get(path, [obj])` -> `any`

##### path

*Required*  
Type: `string`

The string key path. The path can be a normal key or use dot property syntax for deep access. If you need an actual dot, escape it:

```js
get('foo\\.bar', {'foo.bar': 'baz'})
//=> baz
```

##### obj

Type: `object`

The object to get the value from. If no object is supplied, a partially applied function with the path will be returned.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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