Module js

Source
Expand description

Utilities specifically for working with JavaScript specific debug info.

This for the most part only contains utility functions to parse references out of minified JavaScript files and source maps. For actually working with source maps this module is insufficient.

Functions§

discover_debug_id
Parses a debugId comment in a file to discover a sourcemap’s debug ID.
discover_sourcemap_embedded_debug_id
Quickly reads the embedded debug_id key from a source map.
discover_sourcemaps_location
Parses a sourceMappingURL comment in a file to discover a sourcemap reference.