Last updated:
0 purchases
pythonsourcemaps 1.1
Python library for parsing and generating source maps.
Usage
Overview
Example:
>>> import sourcemaps
>>> sourcemaps.discover('...')
'jquery.min.map'
>>> sourcemap = sourcemaps.decode('...')
>>> sourcemap.tokens[3]
<Token: dst_line=10 dst_column=10 src='jquery.js' src_line=50 src_col=200 name='lol'>
>>> sourcemaps.encode(sourcemap)
'{version: 3, mappings: 'AAAA,...', ...}'
Compatibility
Python 2.7
Python 3.3
PyPy
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.