Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

deno911/utilities

Various utility modules for the Deno ecosystem, stored under one roof


callsites

Access call site data from the V8 stack trace API


import { callsites } from "https://deno.land/x/callsites/mod.ts";

const call = () => callsites()[0];
const site = call();

site.getFileName();
// => "file:///Users/foo/bar.ts"
site.isAsync();
// => false

Contributing

This section assumes you have the GitHub CLI

1. Fork and clone the repository locally

gh repo fork deno911/utilities --clone

2. Create a new branch for your changes

git checkout -b fix/typo-in-readme

3. Make small changes and concise commits

βœ… Ensure you’ve performed fmt, lint, and test before committing.

if deno fmt && deno lint && deno test -A --no-check --unstable; then
  git add README.md
  git commit -S[GPG-KEY-iD] -m "fix: typo in readme"
  git push
fi

4. Open a Pull Request

gh pr create --title "fix: typos in README.md"

# or just open github.com and use the web UI

Warning Β· make sure you’ve selected the upstream repo for your Pull Request!