1.0.8 • Published 1 year ago

source-map-to-code v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
1 year ago

source-map-to-code

Get the source code information from the compiled file and error information location through source map

install

yarn add source-map-to-code

example

const { printSourceCodeInfo, getSourceCodeInfo } = require('source-map-to-code')

printSourceCodeInfo({
    filePath: './build/static/js/main.4e7cf41f.js',
    position: {
        line: 3,
        column: 0
    }
})

// print

Source code file path:
  ./es6/test.js

Source code snippets:
  2  var isTest = true
  3  const version = window.version   <------ Error(3:0)
  4  console.log(version)
1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago