
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
pretify-deep-diff
Advanced tools
A utility to prettify the results of deep-diff with emojis and localization support.
A utility to prettify the results of deep-diff with emojis and localization support.
To install the package, use npm:
npm install pretify-deep-diff
Here's an example of how to use pretify-deep-diff:
const diff = require('deep-diff');
const pretifyDeepDiff = require('pretify-deep-diff');
const lhs = {
name: 'John',
age: 30,
pets: ['dog', 'cat'],
address: {
city: 'Chicago',
street: 'Main St'
}
};
const rhs = {
name: 'Jane',
age: 31,
pets: ['dog', 'parrot'],
city: 'New York'
};
const changes = diff(lhs, rhs);
console.log(pretifyDeepDiff(changes, { locale: 'ru' }));
Добавлено:
➕ Добавлено: city = "New York"
❌ Удалено:
❌ Удалено: address
✏️ Изменено:
✏️ Изменено: name с "John" на "Jane"
✏️ Изменено: age с 30 на 31
✏️ Изменено: pets.1 с "cat" на "parrot"
locale: Specify the locale (en or ru). Default is en.customTexts: An object to customize text templates.The library supports localization through JSON files in the locales directory.
FAQs
A utility to prettify the results of deep-diff with emojis and localization support.
We found that pretify-deep-diff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.