sourcemap

Source maps parser
https://github.com/RealyUniqueName/sourcemap

To install, run:

haxelib install sourcemap 1.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

Source maps

Cross platform source map parser for Haxe programming language.

Usage

var data : String = "Contents of some .js.map file";
var map = new SourceMap(data);

var pos : sourcemap.SourcePos = map.originalPositionFor(1, 3);
trace(pos);
/*
	Outputs:
	{
		generatedLine:1,
		generatedColumn:3,
		originalColumn:10,
		originalLine:3,
		source:"/path/to/Test.hx",
		name:"methodName"
	}
*/

map.eachMapping(function (pos:sourcemap.SourcePos) {
	trace(pos);
});
Contributors
RealyUniqueName
Version
1.0.0
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github