Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

just-diff

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-diff

Return an object representing the diffs between two objects. Supports jsonPatch protocol

  • 6.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.5M
increased by3.42%
Maintainers
1
Weekly downloads
 
Created

What is just-diff?

The 'just-diff' npm package is a lightweight utility for computing the difference between two JavaScript objects. It provides a simple and efficient way to identify changes, additions, and deletions between objects.

What are just-diff's main functionalities?

Compute Differences

This feature allows you to compute the differences between two objects. The result is an array of changes that describe how to transform the first object into the second.

const diff = require('just-diff');
const obj1 = { a: 1, b: 2 };
const obj2 = { a: 1, b: 3, c: 4 };
const differences = diff(obj1, obj2);
console.log(differences);

Other packages similar to just-diff

Keywords

FAQs

Package last updated on 26 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc