UNPKG

@porosys/pss

Version:

Porosys Server Setup (pss): General-purpose server setup and automation tool (including Netdata management)

8 lines (6 loc) 213 B
import path from 'path'; import { fileURLToPath } from 'url'; export const getDirname = (importMeta: ImportMeta): string => { const filename = fileURLToPath(importMeta.url); return path.dirname(filename); };