source-map-peek

Peek into source maps from the cli when devtools fail.

source-map-peek

Peek into source maps from the cli when devtools fail.

Usage

source-map-peek [OPTIONS] FILE<:LINE>[:COLUMN]

--path      Print only the source path.
--padding   Add padding for the preview. Default: 10
--map       Set custom path to the source map file if everything else fails

To start editor on the line use

--emacs
--gedit
--less
--nano
--vim

Example

$ source-map-peek -p 5 bundle.js:9134
16:     constructor: ->
17:         super
18:         @randomizeIndex()
19:
20:         if not @collection
21:             throw new Error "Collection missing"
22:
23:         @listenTo @collection, "reset", => @render()
24:
25:         @on "reset", =>

file /path/to/file.coffee
line: 20 column: 8

Install npm install -g source-map-peek