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.
- Host: GitHub
- URL: https://github.com/kchapelier/node-get-source-map-consumer
- Owner: kchapelier
- License: mit
- Created: 2015-03-06T12:42:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-06T13:03:48.000Z (over 10 years ago)
- Last Synced: 2025-02-17T03:16:28.674Z (8 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}));
}
});```