# blindfold

> get and set properties using dot syntax strings

Latest version **1.0.1** (published 2017-07-25) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-07-25 |
| First published | 2014-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gordon Hall |
| Maintainers | bookchin |

## Links

- npm: https://www.npmjs.com/package/blindfold
- Repository: https://github.com/bookchin/blindfold
- Issues: https://github.com/bookchin/blindfold/issues
- npm.io page: https://npm.io/package/blindfold

## Recent versions

- 1.0.1 (latest) — 2017-07-25
- 1.0.0 — 2017-06-11
- 0.0.1 — 2014-12-30
- 0.0.0 — 2014-12-30

## README

Blindfold
=========

[![Build Status](https://travis-ci.org/gordonwritescode/blindfold.svg)](https://travis-ci.org/gordonwritescode/blindfold)

Blindfold is a simple utility for getting and setting values on objects to
which you may not know the paths (using dot syntax).

## Setup

Install using Node Package Manager:

```
npm install blindfold
```

Or just include a script tag:

```html
<script src="blindfold.js"></script>
```

## Usage

Use the `blindfold` function to get or set a value on a context object.

```js
var obj = { foo: { bar: 'baz' } };

// returns 'baz'
blindfold(obj, 'foo.bar');
// sets obj.foo.bar to { baz: 'beep boop' } and returns it
blindfold(obj, 'foo.bar', { baz: 'beep boop' });
```

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