
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
mapcat is a simple utility that concatenates JavaScript files while also consolidating the corresponding source map files. It is useful if you use compile-to-JS languages whose compiler emits source map files. This is the case for CoffeeScript "transpiler" version 1.6 or later.
It's very easy to use:
bin/mapcat input1.map input2.map -m output.map -j output.js
You specify the input by specifying the associated source map files - mapcat
will find the actual JavaScript source files. Use -m to specify one output
source map file and -j to specify one output JavaScript file. Invoke without
any argument to see the (short) full help.
There is a simple example project in the example folder. Run bash build.sh
to build the project. Then open index.html with Webkit Nightly or Chrome with
Source Map support turned on in the Developer Tools. If you have Scripts panel
enabled, refresh the page and you will see the program pause at a predefined
debugger line, and you are looking at, CoffeeScript!

You can also use the simple API. It exposes one simple function:
var cat = require('mapcat').cat;
cat(['input1.map', 'input2.map'], 'output.js', 'out.map');
FAQs
cat for source map files
The npm package mapcat receives a total of 8 weekly downloads. As such, mapcat popularity was classified as not popular.
We found that mapcat 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.