
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
pretty-diff
Advanced tools
Pretty diff generates colorized HTML diffs similar to the diff/commit views on GitHub.
Simply use pretty-diff the same way you use git diff and you'll get pretty diffs.
If you want to share the diff, you can use gist-diff and you'll get a new gist.

Simply install globally via npm:
npm install -g pretty-diff
pretty-diff has no settings of its own.
Simply provide whatever settings you want to pass to git diff.
For example, to see what changed in the last commit:
pretty-diff HEAD^
gist-diff has one setting: --public.
By default gist-diff will generate a private gist.
If --public is provided, the gist will be public.
This setting can be specified anywhere (before or after the git diff settings).
gist-diff will attempt to create the gist using your GitHub account.
In order to create the gist with your account, you will be prompted for your password.
If you enter no password, then an anonymous gist will be generated.
However, if you enter an incorrect password, then no gist will be generated.
If you set your GitHub username in your git config, you will only be prompted for your password.
git config --global github.user "Your Username"
To avoid being prompted for your password, you can
create a personal access token and
store it in your git config. You don't need to set github.user if you're using
a token.
git config --global gist-diff.token "Your token"
Copyright Scott González. Released under the terms of the MIT license.
FAQs
Generate colorized HTML diffs.
We found that pretty-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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.