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.
wsdiff is a tool that produces a syntax-highlighted, self-contained, static HTML file that will show a colored, syntax-highlighted diff of two files or folders without external dependencies or javascript.
A python script that produces a diff of two files or directories as a single, self-contained HTML file. The resulting diff works without Javascript and will automatically switch between inline and side-by-side formats depending on available screen space.
pip install wsdiff
usage: wsdiff [-h] [-b] [-s SYNTAX_CSS] [-l LEXER] [-L] [-t PAGETITLE]
[-o OUTPUT] [--header] [--content]
[old] [new]
Given two source files or directories this application creates an html page
that highlights the differences between the two.
positional arguments:
old source file or directory to compare ("before" file)
new source file or directory to compare ("after" file)
options:
-h, --help show this help message and exit
-b, --open Open output file in a browser
-s SYNTAX_CSS, --syntax-css SYNTAX_CSS
Path to custom Pygments CSS file for code syntax
highlighting
-l LEXER, --lexer LEXER
Manually select pygments lexer (default: guess from
filename, use -L to list available lexers.)
-L, --list-lexers List available lexers for -l/--lexer
-t PAGETITLE, --pagetitle PAGETITLE
Override page title of output HTML file
-o OUTPUT, --output OUTPUT
Name of output file (default: stdout)
--header Only output HTML header with stylesheets and stuff,
and no diff
--content Only output HTML content, without header
FAQs
wsdiff is a tool that produces a syntax-highlighted, self-contained, static HTML file that will show a colored, syntax-highlighted diff of two files or folders without external dependencies or javascript.
We found that wsdiff demonstrated a healthy version release cadence and project activity because the last version was released less than 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.