Skip to content

kchapelier/node-get-source-map-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
        }));
    }
});

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published