JS::SourceMap::Decoder - Decoder for JS source maps
use JS::SourceMap::Decoder; JS::SourceMap::Decoder->new->decode($sourcemap_string);
new [ %options ]
Construct a decoder instance. Options:
json_options => $options_as_arrayref
Specify an array of options to pass to the JSON constructor when parsing JSON. We use the JSON defaults unless this option is given.
assertions => 0|1
If turned on this option will force every token parsed to pass a series of assertions which will
dieif failed. Useful for testing, defaults to off.
Parse a sourcemap and return a JS::SourceMap::Index instance that can be used to query the data it contains.
undefif the decoding failed for any reason; in this case at least one call to
warnwill have been made with more information about why. Otherwise returns a JS::SourceMap::Index instance.
ISC/BSD c.f. LICENSE in the source distribution.