https://github.com/dart-lang/source_maps
A package to programmatically manipulate source maps.
https://github.com/dart-lang/source_maps
Last synced: 6 months ago
JSON representation
A package to programmatically manipulate source maps.
- Host: GitHub
- URL: https://github.com/dart-lang/source_maps
- Owner: dart-lang
- License: bsd-3-clause
- Created: 2014-12-19T21:59:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-01T17:18:10.000Z (6 months ago)
- Last Synced: 2024-12-01T18:24:31.774Z (6 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/source_maps
- Size: 247 KB
- Stars: 16
- Watchers: 38
- Forks: 14
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
> [!IMPORTANT]
> This repo has moved to https://github.com/dart-lang/tools/tree/main/pkgs/source_maps[](https://github.com/dart-lang/source_maps/actions/workflows/test-package.yml)
[](https://pub.dev/packages/source_maps)
[](https://pub.dev/packages/source_maps/publisher)This project implements a Dart pub package to work with source maps.
## Docs and usage
The implementation is based on the [source map version 3 spec][spec] which was
originated from the [Closure Compiler][closure] and has been implemented in
Chrome and Firefox.In this package we provide:
* Data types defining file locations and spans: these are not part of the
original source map specification. These data types are great for tracking
source locations on source maps, but they can also be used by tools to
reporting useful error messages that include on source locations.
* A builder that creates a source map programmatically and produces the encoded
source map format.
* A parser that reads the source map format and provides APIs to read the
mapping information.[closure]: https://github.com/google/closure-compiler/wiki/Source-Maps
[spec]: https://docs.google.com/a/google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit