Skip to main content
Module

x/blog/deps.ts>callsites

Minimal boilerplate blogging.
Go to Latest
function callsites
import { callsites } from "https://deno.land/x/blog@0.3.3/deps.ts";

Returns the list of CallSite objects from the V8 stack trace API.

import callsites from "";
function foo() {
  console.log(callsites()[0].getFileName());
  // => file:///path/to/file.js
}
foo();

Returns

CallSite[]