# evanw/node-source-map-support

Adds source map support to node.js (for stack traces)

Repository: https://github.com/evanw/node-source-map-support
Canonical: https://ross.abutalabs.com/products/node-source-map-support
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-08-03T12:06:40+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4975, "days_push": 760, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2195, forks 221 (observed 2026-08-28T04:06:25.122922+00:00)

## What it is
A Node.js library that adds source map support to stack traces using the V8 stack trace API, remapping compiled file paths and line numbers back to their original sources. It works with any compile-to-JS language and also supports browsers via bundlers like Browserify.

## Use cases
- show original file paths and line numbers in stack traces for transpiled code
- debug TypeScript or Babel-compiled JavaScript running in Node
- get correct stack traces when using the vm module
- fix Error.prototype.stack source maps in Chrome
- readable stack traces for Mocha test runs

## When to choose
- you're on Node < 12.12.0 without the --enable-source-maps flag
- you use vm.runInThisContext where --enable-source-maps doesn't work
- you need source-mapped stack traces in the browser outside DevTools

## When to avoid
- you're on Node >= 12.12.0 and can just use --enable-source-maps
- you use babel-register, which already includes it

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, logging, error-handling
- domain: developer-tools, web-development, programming-languages
- platform: browser, cli
- tags: source-maps, stack-traces, debugging, v8, transpilers, nodejs

## Member repositories
- evanw/node-source-map-support (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:25.122922+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:47:14.936317+00:00, confidence not recorded.
  - readme: https://github.com/evanw/node-source-map-support (fetched 2026-08-28T04:06:25.122922+00:00, sha 987ef43e7f04)
- Data as of 2026-08-30T08:39:29.467469+00:00.
