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
Release files for python-sourcemaps 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-sourcemaps-1.1.zip | 7.0 kB | Details |
Release files / python-sourcemaps-1.1.zip
| Download URL | python-sourcemaps-1.1.zip |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b102a9c2c3e8302131448784be03f72fe9e10060d42306b70959b0c12daf0e10
|
|
BLAKE2b-256 checksum How to use checksums |
84d567e53b324fb50beafce8226030bc4158f5fcee2671fc868e035d13a4c082
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |