python-sourcemaps 1.1

Last updated:

0 purchases

python-sourcemaps 1.1 Image
python-sourcemaps 1.1 Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.