Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
human-object-diff
Advanced tools
Configurable Human Readable Difference Between Two Plain Objects
npm:
npm install human-object-diff
yarn:
yarn add human-object-diff
const humanDiff = require('human-object-diff');
const lhs = { foo: 'bar' };
const rhs = { foo: 'baz' };
const options = {};
const diff = humanDiff(lhs, rhs, options);
console.log(humanObjectDiff.renderName());
// -> ['Foo", with a value of "bar" (at Obj.foo) was changed to "baz"']
human-object-diff
uses date-fns
format function under the hood
to show human readable date differences. We also supply a
dateFormat
option where you can supply your own
date formatting string. Please note, that date-fns format
strings are different from moment.js format strings. Please
refer to the documentation here and here
Name | Website |
---|---|
Spencer Snyder | http://spencersnyder.io/ |
FAQs
Human Readable Difference Between Two Objects
The npm package human-object-diff receives a total of 1,565 weekly downloads. As such, human-object-diff popularity was classified as popular.
We found that human-object-diff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.