2
* Quick utility script for the Python test script to call. Could be replaced if
3
* a good Python source map library is found.
5
var SourceMapConsumer = require('source-map').SourceMapConsumer;
6
var fs = require('fs');
8
var consumer = new SourceMapConsumer(fs.readFileSync(process.argv[2], 'utf-8'));
11
consumer.eachMapping(function(mapping) {
12
mappings.push(mapping);
15
console.log(JSON.stringify(mappings));