MCPcopy Create free account
hub / github.com/TheNetsky/Microsoft-Rewards-Script / getDirname

Function getDirname

scripts/utils.js:6–9  ·  view source on GitHub ↗
(importMetaUrl)

Source from the content-addressed store, hash-verified

4import { DatabaseSync } from 'node:sqlite'
5
6export function getDirname(importMetaUrl) {
7 const __filename = fileURLToPath(importMetaUrl)
8 return path.dirname(__filename)
9}
10
11export function getProjectRoot(currentDir) {
12 let dir = currentDir

Callers 2

clearSessions.jsFile · 0.90
browserSession.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected