UNPKG

@nodesecure/scanner

Version:

A package API to run a static analysis of your module's dependencies.

8 lines 263 B
// Import Node.js Dependencies import { fileURLToPath } from "node:url"; import { dirname } from "node:path"; export function getDirNameFromUrl(url) { const __filename = fileURLToPath(url); return dirname(__filename); } //# sourceMappingURL=dirname.js.map