Search results
108 packages found
Extract the non-magic parent path from a glob string.
The directory used by npm for globally installed npm modules.
Convert a string to a valid safe filename
Pollyfill for node.js `path.parse`, parses a filepath into an object.
- absolute
- basename
- dir
- directory
- dirname
- ext
- extension
- extname
- file
- filename
- filepath
- is-absolute
- name
- object
- View more
Node.js path.dirname() ponyfill
get the file directory from import.meta.url
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
- __dirname
- __filename
- commonjs
- deno
- deno-edition
- deno-entry
- denoland
- directory
- dirname
- ecmascript
- es2022
- es5
- esm
- export-default
- View more
A module to bring back `__dirname` and `__filename` within 2 lines of code.
Return true if a file path contains the given path.
Extract the non-magic parent path from a glob string. This version contains a fix for capacitor.
Useful additions to inbuilt path module.
- extra
- path
- basename
- delimiter
- dirname
- extname
- format
- isAbsolute
- join
- normalize
- parse
- posix
- relative
- resolve
- View more
Useful additions to inbuilt path module {web}.
- extra
- path
- basename
- delimiter
- dirname
- extname
- format
- isAbsolute
- join
- normalize
- parse
- posix
- relative
- resolve
- View more
Return a regular expression to capture a path dirname.
Return a regular expression to capture a Windows path dirname.
Return a regular expression to capture a POSIX path dirname.
Return a regular expression to split a Windows filename.
Return a regular expression to split a POSIX filename.
Return a regular expression to split a filename.
get import.meta.url for commonJS
dirname for module (import/export)