{"id":18812,"library":"source-map-cli","title":"source-map-cli","description":"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.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/gabmontes/source-map-cli","tags":["javascript","cli","console","error","find","left-pad","locate","resolve","source"],"install":[{"cmd":"npm install source-map-cli","lang":"bash","label":"npm"},{"cmd":"yarn add source-map-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add source-map-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core library for source map parsing and resolving","package":"source-map","optional":false}],"imports":[],"quickstart":{"code":"npm install --global source-map-cli\nsource-map resolve bundle.js.map 1 28","lang":"javascript","description":"Installs the CLI globally and resolves a source map location from line 1, column 28."},"warnings":[{"fix":"Update Node.js to v8 or higher.","message":"The tool requires Node.js >=8.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use absolute paths or ensure the file is in the current directory.","message":"Source map file path or URL must be accessible; relative paths are resolved from the current working directory.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use --no-marker option to suppress marker.","message":"Column marker may not appear correctly in some terminals.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install -g source-map-cli source-map","cause":"The package 'source-map' is a peer dependency and must be installed globally or in the same context.","error":"source-map: not found"},{"fix":"Ensure source-map is installed: npm install -g source-map","cause":"The source-map module is missing from the Node.js module path.","error":"Error: Cannot find module 'source-map'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}