Registry / devops / source-map-cli

source-map-cli

JSON →
library1.0.1jsnpmunverified

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-cli
INSTALL
IMPORT
SIG · SOURCE-MAP-CLI
S
source-map-cli
devopsjavascriptv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Installs the CLI globally and resolves a source map location from line 1, column 28.

npm install --global source-map-cli source-map resolve bundle.js.map 1 28
source-map --version
Debug
Known issues
gotchaThe tool requires Node.js >=8.
fix
Update Node.js to v8 or higher.
affects: >=1.0.0
gotchaSource map file path or URL must be accessible; relative paths are resolved from the current working directory.
fix
Use absolute paths or ensure the file is in the current directory.
affects: >=0.1.0
gotchaColumn marker may not appear correctly in some terminals.
fix
Use --no-marker option to suppress marker.
affects: >=0.1.0
Errors
Common errors & fixes
source-map: not found
The package 'source-map' is a peer dependency and must be installed globally or in the same context.
fix
npm install -g source-map-cli source-map
Error: Cannot find module 'source-map'
The source-map module is missing from the Node.js module path.
fix
Ensure source-map is installed: npm install -g source-map
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies
source-maprequiredCore library for source map parsing and resolving
Agent activity
3 hits · last 30 days
node
2
Resources
source-map-cli — npm install source-map-cli · libregistry