{"library":"source-map-support","title":"source-map-support","type":"library","description":"Provides source map support for stack traces in Node.js and browsers via the V8 stack trace API. Current stable version: 0.5.21. Uses the Mozilla source-map module to replace paths and line numbers of source-mapped files with originals. Key differentiator: works with any compile-to-JS language, supports both CLI (-r) and programmatic usage, and includes browser support via bundled script. Maintained by Evan Wallace, releases are infrequent but stable.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install source-map-support"],"cli":null},"imports":["import sourceMapSupport from 'source-map-support'","require('source-map-support').install()","import 'source-map-support/register'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/evanw/node-source-map-support","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/source-map-support","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"// Install: npm install source-map-support\n\n// In your compiled file:\nrequire('source-map-support').install();\n\n// Or via CLI:\n// node -r source-map-support/register compiled.js\n\n// Example with options:\nrequire('source-map-support').install({\n  handleUncaughtExceptions: false,\n  environment: 'node'\n});\n\n// Browser usage:\n// <script src=\"browser-source-map-support.js\"></script>\n// <script>sourceMapSupport.install();</script>\n\n// For TypeScript (ESM):\nimport sourceMapSupport from 'source-map-support';\nsourceMapSupport.install();","lang":"javascript","description":"Shows CommonJS and ESM installation, CLI usage, options, and browser setup for source map support.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}