
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
concatenate-js
Advanced tools
Implements a technique to bundle large numbers of JS files into a single file while maintaining the original file boundaries and names inside development tools. Use this to make your JavaScript serving system be awesome during development without the complexity of source maps.
The module rovides a single function to concatenate a list of JavaScript files into a single output stream in a way that, when executed in the browser, maintains the illusion in JS development tools, that the files had been loaded as individual script tags.
Demo: http://jsbin.com/isozid/1/quiet
var js = require('./concatenate')([
{
content: 'function foo() {alert("foo")}',
filename: 'js/foo.js'
},
{
content: 'function bar() {alert("bar")}',
filename: 'js/bar.js',
hostname: 'app2'
}
]);
Specifying the hostname is optional, the default is 'app'. Chrome Dev Tools groups JS files under the hostname.
This is using multiple eval calls with @sourceURL annotations in a single output stream.
This is better than source maps under these circumstances:
Why is it better:
When you have a syntax error at least V8 based browsers will not show you a line number.
(For the generated JS)
The exported function supports a second param which is a function that gets to modify the output after the eval was added. You may find this useful for i.e. adding CommonJS module wrappers. For an example see example_common_js_simulator.js.
FAQs
Concatenate JavaScript with awesome debuggability.
We found that concatenate-js 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.