Skip to main content
Module.SourceMap.prototype.findOrigin - module - Node documentation
method Module.SourceMap.prototype.findOrigin

Usage in Deno

import { Module } from "node:module";
SourceMap.prototype.findOrigin(
lineNumber: number,
columnNumber: number,
): SourceOrigin | { }

Given a 1-indexed lineNumber and columnNumber from a call site in the generated source, find the corresponding call site location in the original source.

If the lineNumber and columnNumber provided are not found in any source map, then an empty object is returned.

Parameters

lineNumber: number

The 1-indexed line number of the call site in the generated source

columnNumber: number

The 1-indexed column number of the call site in the generated source

Return Type

Back to top