
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
A pocket build tool for web-development (or more). (motto: The build system for the lazy developer)
This might be ./index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Testing</title>
</head>
<body>
<h1>A Test Page</h1>
<script>
{{ @inline "./app.js"}}
</script>
</body>
</html>
and this ./app.js:
// Some random code
console.log('Hello World!');
To let the thing work you need to setup the files to compile in your package.json:
{
...
"binline": {
"files": [
{ "from": "./index.html", "to": "./public/index.html" }
]
}
...
}
Just call binline from the shell to build everything
For now you can only use @inline, but the expressions can become more complex.
Advanced command to uglify the code:
...
{{
@inline "./app.js"
| content => require('uglify-js').minify(content, { fromString: true }).code
}}
...
You may pass more commands separated by a |. After the first directive (@inline) the binline expects a
series of arrow function transform text.
Add a way to predefine transformers:
...
{{ @define uglify | content => require('uglify-js').minify(content, { fromString: true }).code }}
...
and use them:
...
{{ @inline "./app.js" | uglify }}
...
When predefined trasformers will be a thing I might add a small registry with a list of common transformers (uglify, babel, sass, less, coffeescript, ...)
FAQs
A pocket build tool for simple file inlining
We found that binline 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.