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

Function getDirname

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

Source from the content-addressed store, hash-verified

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

Callers 2

clearSessions.jsFile · 0.90
browserSession.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected