Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dxx/src/lib/axe/$deps.ts>getCurrentLine

🚀 (Deno) enhanced executor
Latest
function getCurrentLine
import { getCurrentLine } from "https://deno.land/x/dxx@rf/src/lib/axe/$deps.ts";

Get the location information about the line that called this method. If no offset is provided, then continue until the caller of the getCurrentLine is found.

Examples

Input

console.log(getCurrentLine())

Result

{
	"line": "1",
	"char": "12",
	"method": "Object.<anonymous>",
	"file": "/Users/balupton/some-project/calling-file.js"
}

Parameters

optional
offset: Offset