An open API service indexing awesome lists of open source software.

https://github.com/kchapelier/node-get-source-map-consumer

Get an instance of SourceMapConsumer, when a sourcemap is available, for a given script.
https://github.com/kchapelier/node-get-source-map-consumer

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# node-get-source-map-consumer
Get an instance of SourceMapConsumer, when a sourcemap is available, for a given script.

## Exemple

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

```