Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

simple-compare

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-compare - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"name": "simple-compare",
"version": "1.0.0",
"version": "1.0.1",
"description": "简单的 JS 对象比较器",

@@ -5,0 +5,0 @@ "keywords": [

# simple-compare
简单的 JS 对象比较器
## 安装
```

@@ -9,18 +11,2 @@ npm install simple-compare

## 示例
```
// 本插件为 es6 模块 请在 babel 环境下使用
import compare from 'simple-compare'
compare({ a: 1, b: 2 }, { a: 1, b: 3, c: 4 })
```
返回:
```
{
// 差异总数
count: 2,
// 差异部分
difference: { b: 3, c: 4},
// 原始数据
raw: { a: 1, b: 2 }
}
```
[文档地址](https://aweiu.com/documents/simple-compare/)