Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
combinator
Advanced tools
Find multiple concurrent <script> or <link> tags and turn 'em into single, combo-handled tags
Console script to find repeated <script>
or <link>
elements and streamline them into a single element using a combo handler
Takes HTML that looks like this
<!DOCTYPE html>
<head>
...
<link rel="stylesheet" type="text/css" href="/fooga.css">
<link rel="stylesheet" type="text/css" href="/wooga/booga.css">
<link rel="stylesheet" type="text/css" href="/tooga/looga.css">
</head>
<body>
...
<script type="text/javascript" src="/pooga/rooga.js"></script>
<script type="text/javascript" src="/dooga.js"></script>
</body>
and transforms it to look like this
<!DOCTYPE html>
<head>
...
<link rel="stylesheet" type="text/css" href="/combo?/fooga.css&/wooga/booga.css&/tooga/looga.css">
</head>
<body>
...
<script type="text/javascript" src="/combo?/pooga/rooga.js&/dooga.js"></script>
</body>
saving HTTP requests, bytes over the wire, and possibly your sanity (unlikely).
npm -g install node-combinator
combinator -f index.html
var Combinator = require("combinator"),
combinator = new Combinator({
src : "<!DOCTYPE html>"
});
combinator.run(function(error, html) {
// html is optimized output
});
To install from a clone of the source:
git clone git://github.com/tivac/node-combinator.git
cd node-combinator
npm link
FAQs
Find multiple concurrent <script> or <link> tags and turn 'em into single, combo-handled tags
We found that combinator 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.