sourcemap parser in Emacs Lisp. Only supports decoder now.
You can install sourcemap
from MELPA and MELPA stable
You can install sourcemap
with the following command.
M-x package-install [RET] sourcemap [RET]
Find line and column of original file from specified properties.
properties
is plist and should have following properties
:line
- Line in generated file:column
- Column in generated file
Return value is property list which has :line
and :column
.
With an optional :nearest property, return the closest matching location.
Find line and column of generated file from specified properties.
properties
is plist
and should have following properties
:line
- Original line number:column
- Original column number
With an optional :nearest property, return the closest matching location.
Go to corresponding point.
This is useful for compiling command of coffee-mode
.
You can use this for moving point in compiled JavaScript file which
corresponding to cursor point in CoffeeScript. If you want to use
this feature, add following configuration.
(setq coffee-args-compile '("-c" "-m")) ;; generating sourcemap file
(add-hook 'coffee-after-compile-hook 'sourcemap-goto-corresponding-point)
properties
is plist
and should have following properties
:source
- source file:sourcemap
- sourcemap file:line
- line in:source
(CoffeeScript):column
- column in:source
(CoffeeScript)
Parse file
as sourcemap and return sourcemap instance
Parse string
as sourcemap and return sourcemap instance