This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
mapcat with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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
-m to specify one output
source map file and
any argument to see the (short) full help.
There is a simple example project in the
example folder. Run
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');