0.1.0 • Published 9 years ago

get-source-map-consumer v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

node-get-source-map-consumer

Get an instance of SourceMapConsumer, when a sourcemap is available, for a given script.

Exemple

var getSourceMapConsumer = require('get-source-map-consumer');

getSourceMapConsumer('http://www.mysite.com/scripts/script.min.js', function (error, sourceMapConsumer) {
    if (!error) {
        // we have an instance of SourceMapConsumer to use
        console.log(sourceMapConsumer.originalPositionFor({
            line: 1,
            column: 12
        }));
    }
});