Command-line interface for the Mozilla source-map library, enabling developers to resolve original source locations from minified or bundled JavaScript files. Current stable version is 1.0.1 (released March 2023) with irregular release cadence. Designed for debugging error stack traces in production, it supports resolving line/column mappings from source maps, showing context, and works with local files or URLs. Differentiator: provides an interactive CLI with visual context markers, unlike programmatic source-map libraries.
npm install source-map-cliNo compatibility data collected yet for this library.
Installs the CLI globally and resolves a source map location from line 1, column 28.
Update Node.js to v8 or higher.
Use absolute paths or ensure the file is in the current directory.
Use --no-marker option to suppress marker.
npm install -g source-map-cli source-map
Ensure source-map is installed: npm install -g source-map