# loot-diff

> diff objects

Latest version **1.0.1** (published 2015-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install loot-diff
pnpm add loot-diff
yarn add loot-diff
bun add loot-diff
```

## 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-08-17 |
| First published | 2015-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andrew Luetgers |
| Maintainers | loot |
| Keywords | diff, object |

## Links

- npm: https://www.npmjs.com/package/loot-diff
- Repository: https://github.com/andrewluetgers/diff
- Issues: https://github.com/andrewluetgers/diff/issues
- npm.io page: https://npm.io/package/loot-diff

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [webpack](https://npm.io/package/webpack.md) ^1.11.0

## Recent versions

- 1.0.1 (latest) — 2015-08-17
- 1.0.0 — 2015-08-15

## README

## Object Difference
based on [http://blog.vjeux.com/2011/javascript/object-difference.html](http://blog.vjeux.com/2011/javascript/object-difference.html)

It is very minimal and not perfect.


```javascript
var obj1 = {
	foo: 1
	bar: {
		baz: "zap",
		buzz: false
	},
};

var obj2 = {
	foo: 2
	bar: {
		baz: "zap",
		buzz: true
	}
};

console.log(diff(obj1, obj2));

// should log
{
	foo: 2,
	bar: {
		buzz: true
	}
}

```

## browser useage
the webpack build output lib/loot-diff.min.js expects lodash to be available globally as _

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