js-source-scopes

Crates.iojs-source-scopes
lib.rsjs-source-scopes
version0.5.0
sourcesrc
created_at2022-09-22 16:05:10.183921
updated_at2024-06-03 11:39:19.200405
descriptionUtilities for extracting and dealing with scope information in JS code
homepagehttps://github.com/getsentry/js-source-scopes
repositoryhttps://github.com/getsentry/js-source-scopes
max_upload_size
id671824
size800,995
Sentry Bot (getsentry-bot)

documentation

https://docs.rs/js-source-scopes

README

JS Source Scopes

Build Status codecov

This crate provides functionality for extracting and processing scope information from JavaScript source files, and resolving that scope via SourceMaps.

Features

  • Extracting scopes from source text using [extract_scope_names]
  • Fast lookup of scopes by byte offset using [ScopeIndex]
  • Fast conversion between line/column source positions and byte offsets using [SourceContext]
  • Resolution of minified scope names to their original names using [NameResolver]

License

JS Source Scopes is licensed under the Apache-2.0 license.

Commit count: 87

cargo fmt