
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Aggressively removes whitespace from HTML; while taking into account each element's CSS properties to ensure the layout of the file is unchanged.
Inline JavaScript and CSS are minified using UglifyJS and clean-css respectively.
Please note Unreadable is a young project so there are still some issues and TODOs.
$ unreadable --inspect --url http://www.youtube.com --output youtube.min.html
✔ 12643 characters removed, 986/986 elements with layout unaffected by minification
-h, --help output usage information
-V, --version output the version number
-u --url [value] URL to process
-i --inspect Inspect layout before and after, to verify no elements have changed size or position (slower)
-o --output [value] File to write minified source to
-c --config [value] Path to JSON configuration file (see https://github.com/JamieMason/Unreadable#config)
npm install -g unreadable
You'll need to Download & Install PhantomJS.
You can override any of Unreadable's defaults by providing a path to a JSON file.
unreadable --url http://... --config path/to/my/unreadable.json
Only the values you want to override need be defined, so to enable removal of optional closing tags for example - your file would look like this;
{
"unreadable": {
"remove_optional_closing_tags": true
}
}
All default values can be found in defaults.json, but here are the key ones;
Some element's closing tags can be omitted, resulting in a much smaller file. But, doing so can affect layout (http://jsfiddle.net/csswizardry/UMYZs/) so this is disabled by default.
Omitting these element's closing tags is permitted, add/remove any you want to include/exclude as preferred.
These elements don't have closing tags, such as <img src="nevergonna.png"></img>
.
These values are applied to UglifyJS and are documented at https://github.com/mishoo/UglifyJS
Since we're Uglifying JavaScript found in <script>
blocks as opposed to external files, I wouldn't recommend changing this value.
FAQs
An intelligent/CSS-aware HTML Minifier and Optimizer
The npm package unreadable receives a total of 0 weekly downloads. As such, unreadable popularity was classified as not popular.
We found that unreadable 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.