https://github.com/getsentry/js-source-scopes
https://github.com/getsentry/js-source-scopes
tag-production
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/getsentry/js-source-scopes
- Owner: getsentry
- License: apache-2.0
- Created: 2022-05-10T15:30:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T10:16:47.000Z (7 months ago)
- Last Synced: 2025-04-08T10:08:24.075Z (6 months ago)
- Topics: tag-production
- Language: Rust
- Homepage:
- Size: 337 KB
- Stars: 12
- Watchers: 37
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# JS Source Scopes
[](https://github.com/getsentry/js-source-scopes/actions?workflow=CI)
![]()
![]()
[](https://codecov.io/gh/getsentry/js-source-scopes)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.