dirfilename
Alternatives to `__dirname` and `__filename` when using ES modules.
Alternatives to `__dirname` and `__filename` when using ES modules.
A tiny isomorphic ESM alternative to Node's __dirname global.
const __dirname = useDirname(import.meta.url)
A module to bring back `__dirname` and `__filename` within 2 lines of code.
local path for mjs
Get root folders of git, svn, mercurial, nodejs node_modules / package.json / package-lock.json, and nodejs .jscache folder
It's __dirname but for pkg'd windows applications
Command-line for converting markdown content into emails
A Node.js compatibility layer for PocketBase JSVM
Extract the non-magic parent path from a glob string. This version contains a fix for capacitor.
Return a directory name.
Return a regular expression to split a POSIX filename.
Return a regular expression to split a Windows filename.
Return a regular expression to capture a path dirname.
Return a regular expression to capture a POSIX path dirname.
Return a regular expression to capture a Windows path dirname.
Return a regular expression to split a filename.
Convert string to safe filename
Extract the non-magic parent path from a glob string.
Babel plugin transforms import.meta in emitted CJS.